Skip to content

[Bug](cooldown) set new replica id when early exit in doing clone when no missed versions#16644

Merged
yiguolei merged 3 commits intoapache:masterfrom
ByteYue:fix_cooldown_not_set_new_replica_id
Feb 13, 2023
Merged

[Bug](cooldown) set new replica id when early exit in doing clone when no missed versions#16644
yiguolei merged 3 commits intoapache:masterfrom
ByteYue:fix_cooldown_not_set_new_replica_id

Conversation

@ByteYue
Copy link
Contributor

@ByteYue ByteYue commented Feb 12, 2023

Proposed changes

Issue Number: close #xxx
When doing clone task, the logic would early exit if the missed version is empty. But the tablet meta is not set with the newly replica id inside the clone request. It would result inconsistent cooldown replica id when doing cooldown.

Problem summary

Describe your changes.

Checklist(Required)

  • Does it affect the original behavior
  • Has unit tests been added
  • Has document been added or modified
  • Does it need to update dependencies
  • Is this PR support rollback (If NO, please explain WHY)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

dataroaring
dataroaring previously approved these changes Feb 12, 2023
Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Feb 12, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Feb 12, 2023
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@ByteYue ByteYue requested a review from dataroaring February 12, 2023 13:29
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Feb 13, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@yiguolei yiguolei merged commit 8317c4a into apache:master Feb 13, 2023
@platoneko
Copy link
Contributor

LGTM

YangShaw pushed a commit to YangShaw/doris that referenced this pull request Feb 17, 2023
…n no missed versions (apache#16644)

* set new replica id

* reduce lock

* reset when replica id is different
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants