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

Minor tweak to migration workflow wait replication check #2839

Merged
merged 2 commits into from
May 12, 2022

Conversation

meiliang86
Copy link
Contributor

What changed?

Why?

How did you test it?

Potential risks

Is hotfix candidate?

@meiliang86 meiliang86 requested a review from a team as a code owner May 12, 2022 17:30
Comment on lines 122 to 123
shard.MaxReplicationTaskId-clusterInfo.AckedTaskId <= waitRequest.AllowedLaggingTasks &&
shard.ShardLocalTime.Sub(*clusterInfo.AckedTaskVisibilityTime) <= waitRequest.AllowedLagging {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ||, the if condition should be if ackedId >= waitForTaskID && (allowedLaggingTasks || allowedLaggingTime)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

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

3 participants