Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unload shard if loaded task ID is greater than max transfer ID #2361

Merged
merged 2 commits into from Jan 11, 2022

Conversation

yiminc
Copy link
Member

@yiminc yiminc commented Jan 11, 2022

What changed?
Add sanity check to task processor to make sure task ID is not greater than max task ID known to this shard.

Why?
This will guard against from shard reading timer tasks generated by other shard owner while current pod lost ownership.

How did you test it?
eye_balls.

Potential risks
No

Is hotfix candidate?
No

@yiminc yiminc requested a review from a team January 11, 2022 04:20
@yiminc yiminc enabled auto-merge (squash) January 11, 2022 04:41
@yiminc yiminc merged commit aa62866 into temporalio:master Jan 11, 2022
yiminc added a commit to yiminc/temporal that referenced this pull request Jan 12, 2022
…ralio#2361)

* Unload shard if loaded task ID is greater than max transfer ID

* Update max read level for timer task ID as well
yiminc added a commit that referenced this pull request Jan 12, 2022
* Unload shard if loaded task ID is greater than max transfer ID

* Update max read level for timer task ID as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants