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

[BugFix] fix enable sync publish when clone (backport #37398) #37543

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Dec 21, 2023

This is an automatic backport of pull request #37398 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

Why I'm doing:
In previous PR #27055 , we add config enable_sync_publish. When it is true, BE will return publish version request success until all version is queryable.

But when clone happen, BE report both version and max_readable_version to FE in finish clone request, and FE will use version instead of max_readable_version to update replica version, so it will broken the rule that enable_sync_publish define, because version may not queryable yet.

What I'm doing:
Using max_readable_version instead of version to update replica version when clone finish.

Signed-off-by: luohaha <[email protected]>
(cherry picked from commit 575e644)
Copy link

sonarcloud bot commented Dec 21, 2023

Copy link

[BE Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

[FE Incremental Coverage Report]

pass : 4 / 4 (100.00%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 com/starrocks/clone/TabletSchedCtx.java 4 4 100.00% []

@sevev sevev merged commit 2a5cd0d into branch-2.5-bx Dec 21, 2023
23 of 24 checks passed
@sevev sevev deleted the mergify/bp/branch-2.5-bx/pr-37398 branch December 21, 2023 08:44
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.

2 participants