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] Update total stat of PrimaryKey tablet after full clone #10786

Merged
merged 1 commit into from
Sep 3, 2022

Conversation

sevev
Copy link
Contributor

@sevev sevev commented Sep 2, 2022

What type of PR is this:

  • bugfix
  • feature
  • enhancement
  • refactor
  • others

Which issues of this PR fixes :

Fixes #

Problem Summary(Required) :

If a PrimaryKey tablet do full clone, we will clear the rowsets before and copy new rowsets, but we don't update the _cur_total_rows and _cur_total_dels after clone. So the following check in compaction maybe failed.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • I have added user document for my new feature or new function

@sevev
Copy link
Contributor Author

sevev commented Sep 2, 2022

run starrocks_admit_test

@sevev
Copy link
Contributor Author

sevev commented Sep 3, 2022

run starrocks_admit_test

@trueeyu trueeyu merged commit 9f53b8f into StarRocks:main Sep 3, 2022
@sevev
Copy link
Contributor Author

sevev commented Sep 3, 2022

@mergify backport branch-2.3

@sevev
Copy link
Contributor Author

sevev commented Sep 3, 2022

@mergify backport branch-2.4

mergify bot pushed a commit that referenced this pull request Sep 3, 2022
If a PrimaryKey tablet do full clone, we will clear the rowsets before and copy new rowsets, but we don't update the _cur_total_rows and _cur_total_dels after clone. So the following check in compaction maybe failed.

(cherry picked from commit 9f53b8f)
@mergify
Copy link
Contributor

mergify bot commented Sep 3, 2022

backport branch-2.3

✅ Backports have been created

@mergify
Copy link
Contributor

mergify bot commented Sep 3, 2022

backport branch-2.4

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Sep 3, 2022
If a PrimaryKey tablet do full clone, we will clear the rowsets before and copy new rowsets, but we don't update the _cur_total_rows and _cur_total_dels after clone. So the following check in compaction maybe failed.

(cherry picked from commit 9f53b8f)
wanpengfei-git pushed a commit that referenced this pull request Sep 3, 2022
If a PrimaryKey tablet do full clone, we will clear the rowsets before and copy new rowsets, but we don't update the _cur_total_rows and _cur_total_dels after clone. So the following check in compaction maybe failed.

(cherry picked from commit 9f53b8f)
@sevev sevev deleted the fix_miss_update branch September 3, 2022 07:20
wanpengfei-git pushed a commit that referenced this pull request Sep 3, 2022
If a PrimaryKey tablet do full clone, we will clear the rowsets before and copy new rowsets, but we don't update the _cur_total_rows and _cur_total_dels after clone. So the following check in compaction maybe failed.

(cherry picked from commit 9f53b8f)
@jaogoy
Copy link
Contributor

jaogoy commented Sep 4, 2022

It seams that there is another bug of primary key model when reusing some struct without reset.

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

4 participants