-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
bugfix: clean up resources in time to avoid mutual influence between unit tests #1778
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1778 +/- ##
============================================
+ Coverage 50.42% 50.73% +0.3%
- Complexity 2153 2161 +8
============================================
Files 414 414
Lines 14151 14151
Branches 1700 1700
============================================
+ Hits 7136 7179 +43
+ Misses 6328 6283 -45
- Partials 687 689 +2
Continue to review full report at Codecov.
|
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.Testing passed.
* 'develop' of https://github.com/seata/seata: feature:support gRpc (apache#1492) bugfix:fix auto proxy for multiple-datasource does not work (apache#1793) optimize: increase rm code coverage by db mock (apache#1674) bugfix: mysql can not get primary key value (apache#1788) bugfix: jdk 11 remoteAddress is null (apache#1764) test: verify that the analysis of the cause of issue 1702 is correct (apache#1710) optimize: seata server register eureka instance id (apache#1790) optimize: put message to logQueue (apache#1760) optimize:optimize rpc remoting log(apache#1787) optimize: simplify code (apache#1786) version: change version to 1.0.0-SNAPSHOT (apache#1785) bugfix: clean up resources in time to avoid mutual influence between unit tests (apache#1778) optimize:remove unused method (apache#1766) bugfix: DeleteExecutor. buildBeforeImageSQL keyword checker by db type (apache#1777) optimize: string splice and release lock (apache#1770) release 0.9.0 (apache#1771) bugfix: oracle rollback failed when the table has null Blob Clob value (apache#1761) bugfix: service method not support interface type parameter (apache#1759) optimize: abstract table meta cache (apache#1750) optimize: improve the efficiency of the batch log (apache#1743)
Ⅰ. Describe what this PR did
According to #1710's ci output,
DefaultCoreForEventBusTest
's threadAsyncCommitting_2_1
committedDefaultCoreForEventBusTest
's session, so it's proved that more than oneAsyncCommitting
threads running in the same time which could case the unit test failure.This PR tried to clean up unit tests' resources to avoid mutual influence between them.
DefaultCoordinatorMetricsTest:
DefaultCoreForEventBusTest:
Ⅱ. Does this pull request fix one issue?
fixes #1702
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews