-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: rename and add tidb_wait_split_region_finish_backoff session var to set wait split region backoff time. #10797
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10797 +/- ##
================================================
+ Coverage 80.9047% 80.9465% +0.0417%
================================================
Files 419 419
Lines 88750 88787 +37
================================================
+ Hits 71803 71870 +67
+ Misses 11714 11680 -34
- Partials 5233 5237 +4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sessionctx/variable/session.go
Outdated
case TiDBWaitSplitRegionFinish: | ||
s.WaitSplitRegionFinish = TiDBOptOn(val) | ||
case TiDBWaitSplitRegionFinishBackoff: | ||
s.Backoff.SetWaitScatterRegionFinishBackoff(int(tidbOptInt64(val, backoff.WaitScatterRegionFinishBackoff))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we add function like tidbOptPositiveInt32
is enough. Then we remove backoff_time.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
sessionctx/variable/session.go
Outdated
|
||
// GetWaitScatterRegionFinishBackoff gets the back off time of waitScatterRegionFinish. | ||
func (b *BackoffTimer) GetWaitScatterRegionFinishBackoff() int { | ||
if b.waitScatterRegionFinish > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we use tidbOptPositiveInt32
to set the value. I think we needn't do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done. Thanks.
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
/run-all-tests |
/run-all-tests |
/run-all-tests |
/run-unit-test |
…set wait split region timeout. (pingcap#10797)
…set wait split region timeout. (pingcap#10797)
What problem does this PR solve?
tidb_wait_split_region_finish_backoff
to set the split region back off time.tidb_wait_split_region_finish
default value to true. We meet some performence problem cause by defaultasync scatter
behaviour . So we decide change this default behaviour tosync scatter
.What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes