java-sdk
java-sdk copied to clipboard
Timer protobuf mismatched message type error
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
- 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
- Run the workflow
- When the workflow hits the timer, restart the service
- 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