-
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
session,store/tikv: make CI more stable #13303
Conversation
make TestBatchResolveLocks more stable make TestErrorRollback faster
PTAL @SunRunAway |
Codecov Report
@@ Coverage Diff @@
## master #13303 +/- ##
===========================================
Coverage 80.1529% 80.1529%
===========================================
Files 469 469
Lines 112042 112042
===========================================
Hits 89805 89805
Misses 15291 15291
Partials 6946 6946 |
@@ -151,7 +151,7 @@ func (s *testSessionSuite) TestErrorRollback(c *C) { | |||
var wg sync.WaitGroup | |||
cnt := 4 | |||
wg.Add(cnt) | |||
num := 100 | |||
num := 20 |
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.
Is it OK to decrease the tested number?
Would you please give some explains why this test become slower since the related PR is merged
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.
Is it OK to decrease the tested number?
I guess so, at lease the change doesn't affect the correctness.
The ResolveLocks
function is more sensitivity than before, in a heavy write conflict sense the contention increase.
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
/run-all-tests |
1 similar comment
/run-all-tests |
@tiancaiamao merge failed. |
/run-unit-test |
make TestBatchResolveLocks more stable make TestErrorRollback faster
What problem does this PR solve?
make
TestBatchResolveLocks
more stablemake
TestErrorRollback
fasterFix #13281
What is changed and how it works?
After #13123, TestErrorRollback runs slower than before in the race test.
Increase TTL for
TestBatchResolveLocks
to make it more stable.Check List
Tests