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

Properly handle min task ID > max task ID case when shard is re-balancing #3470

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

wxing1292
Copy link
Contributor

What changed?

  • Properly handle min task ID > max task ID case by return unavailable error

Why?
During shard rebalancing, it is possible that a replication task poller contact new shard owner, then old shard owner: min task ID > max task ID; old shard owner should return unavailable error -> caller retry.

How did you test it?
N/A

Potential risks
N/A

Is hotfix candidate?
N/A

@wxing1292 wxing1292 requested a review from yux0 October 11, 2022 01:46
@wxing1292 wxing1292 requested a review from a team as a code owner October 11, 2022 01:46
@wxing1292 wxing1292 enabled auto-merge (squash) October 11, 2022 01:47
@wxing1292 wxing1292 merged commit d33559a into temporalio:master Oct 11, 2022
@wxing1292 wxing1292 deleted the shard-rebalancing branch October 11, 2022 03:45
dnr pushed a commit that referenced this pull request Oct 17, 2022
…ing (#3470)

* Properly handle min task ID > max task ID case by return unavailable error during shard re-balancing
dnr pushed a commit that referenced this pull request Oct 18, 2022
…ing (#3470)

* Properly handle min task ID > max task ID case by return unavailable error during shard re-balancing
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