Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes blockage of Transfer Queue if UpsertSearchAttributes is invoked…
… on a Temporal Server w/o Elastic Search #727 The current implementations of UpsertWorkflowExecution on the Cassandra/SQL visibility persistence stores return a Service Error since Query Operations are not supported for those stores. The problem is that we do allow customers to invoke UpsertWorkflowExecution successfully even if Elastic Search isn't enabled. This results in our Transfer Task Queues getting clogged because it keeps retrying a persistence operation that will always fail. The fix is to just have all attempts to UpsertWorkflowExecution on Cassandra/SQL to function as a no-op so that it does not "fail" the transfer task perpetually. We will still fail with explicit errors on List/Scan/Count, so the user should be able to easily tell that their application logic is broken if it does depend on Elastic Search. The change was verified as follows: Existing Unit test was modified to ensure that no-op is always returned for UpsertWorkflowExecution Running Bench Test on Temporal Server w/o ES cluster stopped spamming the "Critical error processing task" error log once this change was made. This is a very low risk change.
- Loading branch information