-
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
executor: fix two data races in tests #11062
Conversation
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
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 |
@@ -4097,7 +4109,7 @@ func (s *testSuite) TestOOMPanicAction(c *C) { | |||
} | |||
tk.Se.SetSessionManager(sm) | |||
s.domain.ExpensiveQueryHandle().SetSessionManager(sm) | |||
config.GetGlobalConfig().OOMAction = config.OOMActionCancel | |||
setOOMAction(config.OOMActionCancel) |
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.
Need to set it back?
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
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
/run-all-tests |
LGTM |
|
/run-unit-test |
/run-unit-test |
/run-unit-test |
Codecov Report
@@ Coverage Diff @@
## master #11062 +/- ##
================================================
- Coverage 81.2145% 80.9586% -0.2559%
================================================
Files 419 419
Lines 90682 89332 -1350
================================================
- Hits 73647 72322 -1325
+ Misses 11778 11772 -6
+ Partials 5257 5238 -19 |
What problem does this PR solve?
Fix two data races in tests.
What is changed and how it works?
Add atomic store for global variables.
Check List
Tests
Code changes