Skip to content

Avoid recalculate stable property when stable is empty#1876

Merged
ti-srebot merged 2 commits intomasterfrom
fix-gc-thread-0507
May 10, 2021
Merged

Avoid recalculate stable property when stable is empty#1876
ti-srebot merged 2 commits intomasterfrom
fix-gc-thread-0507

Conversation

@lidezhu
Copy link
Contributor

@lidezhu lidezhu commented May 7, 2021

What problem does this PR solve?

Issue Number: close #xxx

Problem Summary: when an old cluster have a lot of empty stable file(e.g. table that don't have tiflash replica), after upgrade it will try to calculate stable property which is useless work.

What is changed and how it works?

Proposal: xxx

What's Changed: Add more check to avoid calculate stable property for empty tables after upgrading.

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch:

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

Release note

@lidezhu lidezhu self-assigned this May 7, 2021
@lidezhu lidezhu requested a review from JaySon-Huang May 7, 2021 12:06
@lidezhu lidezhu added the type/bugfix This PR fixes a bug. label May 7, 2021
@lidezhu lidezhu added this to the v5.0.2 milestone May 7, 2021
@lidezhu
Copy link
Contributor Author

lidezhu commented May 7, 2021

/run-all-tests

@lidezhu lidezhu requested a review from flowbehappy May 8, 2021 04:53
@lidezhu
Copy link
Contributor Author

lidezhu commented May 8, 2021

This fix is also included in this cherry pick pr: #1878

Copy link
Contributor

@JaySon-Huang JaySon-Huang left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label May 10, 2021
@JaySon-Huang
Copy link
Contributor

/merge

@lidezhu
Copy link
Contributor Author

lidezhu commented May 10, 2021

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label May 10, 2021
@ti-srebot
Copy link
Collaborator

/run-all-tests

@ti-srebot
Copy link
Collaborator

@lidezhu merge failed.

@JaySon-Huang
Copy link
Contributor

/rebuild

@lidezhu
Copy link
Contributor Author

lidezhu commented May 10, 2021

/merge

@ti-srebot
Copy link
Collaborator

Your auto merge job has been accepted, waiting for:

  • 1379

@ti-srebot
Copy link
Collaborator

/run-all-tests

@ti-srebot ti-srebot merged commit 4360991 into master May 10, 2021
@lidezhu lidezhu deleted the fix-gc-thread-0507 branch May 10, 2021 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1. type/bugfix This PR fixes a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants