java-sdk icon indicating copy to clipboard operation
java-sdk copied to clipboard

Timer protobuf mismatched message type error

Open TheForbiddenAi opened this issue 5 months ago • 0 comments

Expected Behavior

Restarting a service during a workflow with a timer should simply restart the timer activity with no issues.

Actual Behavior

Restarting a service during a workflow that has a timer, the timer actor fails to restart, and the following error appears in the logs:

level=error msg="Workflow actor 'bacdd243-48af-455c-8caf-f52fb2ca035e': execution failed with an error: proto: mismatched message type: got "durabletask.protos.backend.v1.DurableTimer", want "google.protobuf.BytesValue""

Steps to Reproduce the Problem

Dapr runtime version: 1.15.6 Java SDK version: 0.15.0-rc-7 We also have SchedulerReminders disabled

  1. Create a simple workflow that has a timer a. My test workflow was just a simple activity that just logged a message, then a 30 second timer, and then called the simple activity again
  2. Run the workflow
  3. When the workflow hits the timer, restart the service
  4. Observe the logs

Release Note

RELEASE NOTE: FIX Restarting a service while a timer is executing in a workflow no longer results in a protobuf mismatched message type error

TheForbiddenAi avatar Jul 01 '25 19:07 TheForbiddenAi