GC: remove compact on split#18500
Conversation
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
|
Skipping CI for Draft Pull Request. |
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
|
bugbot run |
There was a problem hiding this comment.
✅ BugBot reviewed your changes and found no bugs!
BugBot free trial expires on July 22, 2025
You have used $0.00 of your $10.00 spend limit so far. Manage your spend limit in the Cursor dashboard.
Was this report helpful? Give feedback by reacting with 👍 or 👎
|
bugbot run |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hbisheng, LykxSassinator The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
close tikv#18451 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
close tikv#18451 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
close tikv#18451 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
close #18451 Remove compaction scheduling on split key not found error. Split key not found error is usually returned when a region only has a few keys but a large number of stale MVCC versions. This was the incentive of scheduling a compaction on split error. However, this solution brings a more serious problem, i.e. worker threads starvation. We don't really need this extra compaction, we expect that, after the compaction optimization is done, this MVCC accumulation issue would be mitigated. So, once the "split key not found" occurs, we just rely on the CheckThenCompact to resolve it. Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> Signed-off-by: Yang Zhang <yang.zhang@pingcap.com> Co-authored-by: Yang Zhang <yang.zhang@pingcap.com>
close tikv#18451 Remove compaction scheduling on split key not found error. Split key not found error is usually returned when a region only has a few keys but a large number of stale MVCC versions. This was the incentive of scheduling a compaction on split error. However, this solution brings a more serious problem, i.e. worker threads starvation. We don't really need this extra compaction, we expect that, after the compaction optimization is done, this MVCC accumulation issue would be mitigated. So, once the "split key not found" occurs, we just rely on the CheckThenCompact to resolve it. Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
close tikv#18451 Remove compaction scheduling on split key not found error. Split key not found error is usually returned when a region only has a few keys but a large number of stale MVCC versions. This was the incentive of scheduling a compaction on split error. However, this solution brings a more serious problem, i.e. worker threads starvation. We don't really need this extra compaction, we expect that, after the compaction optimization is done, this MVCC accumulation issue would be mitigated. So, once the "split key not found" occurs, we just rely on the CheckThenCompact to resolve it. Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
close tikv#18451 Remove compaction scheduling on split key not found error. Split key not found error is usually returned when a region only has a few keys but a large number of stale MVCC versions. This was the incentive of scheduling a compaction on split error. However, this solution brings a more serious problem, i.e. worker threads starvation. We don't really need this extra compaction, we expect that, after the compaction optimization is done, this MVCC accumulation issue would be mitigated. So, once the "split key not found" occurs, we just rely on the CheckThenCompact to resolve it. Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
close tikv#18451 Remove compaction scheduling on split key not found error. Split key not found error is usually returned when a region only has a few keys but a large number of stale MVCC versions. This was the incentive of scheduling a compaction on split error. However, this solution brings a more serious problem, i.e. worker threads starvation. We don't really need this extra compaction, we expect that, after the compaction optimization is done, this MVCC accumulation issue would be mitigated. So, once the "split key not found" occurs, we just rely on the CheckThenCompact to resolve it. Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
close tikv#18451 Remove compaction scheduling on split key not found error. Split key not found error is usually returned when a region only has a few keys but a large number of stale MVCC versions. This was the incentive of scheduling a compaction on split error. However, this solution brings a more serious problem, i.e. worker threads starvation. We don't really need this extra compaction, we expect that, after the compaction optimization is done, this MVCC accumulation issue would be mitigated. So, once the "split key not found" occurs, we just rely on the CheckThenCompact to resolve it. Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
close tikv#18451 Remove compaction scheduling on split key not found error. Split key not found error is usually returned when a region only has a few keys but a large number of stale MVCC versions. This was the incentive of scheduling a compaction on split error. However, this solution brings a more serious problem, i.e. worker threads starvation. We don't really need this extra compaction, we expect that, after the compaction optimization is done, this MVCC accumulation issue would be mitigated. So, once the "split key not found" occurs, we just rely on the CheckThenCompact to resolve it. Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
close tikv#18451 Remove compaction scheduling on split key not found error. Split key not found error is usually returned when a region only has a few keys but a large number of stale MVCC versions. This was the incentive of scheduling a compaction on split error. However, this solution brings a more serious problem, i.e. worker threads starvation. We don't really need this extra compaction, we expect that, after the compaction optimization is done, this MVCC accumulation issue would be mitigated. So, once the "split key not found" occurs, we just rely on the CheckThenCompact to resolve it. Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
close tikv#18451 Remove compaction scheduling on split key not found error. Split key not found error is usually returned when a region only has a few keys but a large number of stale MVCC versions. This was the incentive of scheduling a compaction on split error. However, this solution brings a more serious problem, i.e. worker threads starvation. We don't really need this extra compaction, we expect that, after the compaction optimization is done, this MVCC accumulation issue would be mitigated. So, once the "split key not found" occurs, we just rely on the CheckThenCompact to resolve it. Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
close #18451 Remove compaction scheduling on split key not found error. Split key not found error is usually returned when a region only has a few keys but a large number of stale MVCC versions. This was the incentive of scheduling a compaction on split error. However, this solution brings a more serious problem, i.e. worker threads starvation. We don't really need this extra compaction, we expect that, after the compaction optimization is done, this MVCC accumulation issue would be mitigated. So, once the "split key not found" occurs, we just rely on the CheckThenCompact to resolve it. Signed-off-by: Yang Zhang <yang.zhang@pingcap.com> Co-authored-by: Yang Zhang <yang.zhang@pingcap.com>
close tikv#18451 Remove compaction scheduling on split key not found error. Split key not found error is usually returned when a region only has a few keys but a large number of stale MVCC versions. This was the incentive of scheduling a compaction on split error. However, this solution brings a more serious problem, i.e. worker threads starvation. We don't really need this extra compaction, we expect that, after the compaction optimization is done, this MVCC accumulation issue would be mitigated. So, once the "split key not found" occurs, we just rely on the CheckThenCompact to resolve it. Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
What is changed and how it works?
Issue Number: Close #18451
What's Changed:
Related changes
pingcap/docs/pingcap/docs-cn:Check List
Tests
Side effects
Release note