Skip to content
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

optimize: delay to delete the expired undo log #1559

Merged
merged 3 commits into from
Sep 2, 2019
Merged

optimize: delay to delete the expired undo log #1559

merged 3 commits into from
Sep 2, 2019

Conversation

jsbxyyx
Copy link
Member

@jsbxyyx jsbxyyx commented Aug 29, 2019

Ⅰ. Describe what this PR did

optimize delay to delete the expired undo log

Ⅱ. Does this pull request fix one issue?

fixes #1464

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented Aug 29, 2019

Codecov Report

Merging #1559 into develop will decrease coverage by 0.07%.
The diff coverage is 0%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1559      +/-   ##
=============================================
- Coverage      46.42%   46.35%   -0.08%     
+ Complexity      1692     1690       -2     
=============================================
  Files            348      348              
  Lines          12723    12723              
  Branches        1588     1588              
=============================================
- Hits            5907     5898       -9     
- Misses          6177     6186       +9     
  Partials         639      639
Impacted Files Coverage Δ Complexity Δ
...o/seata/server/coordinator/DefaultCoordinator.java 50.45% <0%> (-2.76%) 26 <0> (-2)
...server/store/file/FileTransactionStoreManager.java 45.99% <0%> (-1.05%) 19% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dcb02c0...f290424. Read the comment docs.

@@ -459,7 +459,7 @@ public void init() {
} catch (Exception e) {
LOGGER.info("Exception undoLog deleting ... ", e);
}
},0, UNDOLOG_DELETE_PERIOD,TimeUnit.MILLISECONDS);
},3 * 60 * 1000, UNDOLOG_DELETE_PERIOD, TimeUnit.MILLISECONDS);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define a constant.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix done

Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@slievrly slievrly merged commit 0474f48 into apache:develop Sep 2, 2019
@jsbxyyx jsbxyyx deleted the undolog_delete branch September 2, 2019 06:01
@wangliang181230 wangliang181230 added this to the 0.8.1 milestone Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When the seata-server starts, it should takes a delay to delete the expired undo log
5 participants