forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Matching engine fix for flaky unit test (cadence-workflow#349)
TaskListManager needs range to updated before starting task writer so it can initialize max read level correctly using the initialized taskSequenceNumber on TasklistMgr. If ordering of reversed then MaxReadLevel is initialized incorrectly to -1 and will rely on a task to be written before it can be set to correct value. This results in GetTasks to use incorrectly initialized MaxReadLevel and will never read tasks from persistence store.
- Loading branch information
1 parent
f358b88
commit a4b6171
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters