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: add tcc fence log clean task delay check #5089

Merged
merged 6 commits into from Feb 14, 2023

Conversation

dmego
Copy link
Contributor

@dmego dmego commented Nov 18, 2022

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

ScheduledThreadPoolExecutor#scheduleWithFixedDelay() 方法中,long delay 参数不能 <=0,否则会抛出异常。可以对 cleanPeriod 做一个 check, 当值 <=0 时,不启动 clean task 定时任务

Ⅱ. Does this pull request fix one issue?

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@CLAassistant
Copy link

CLAassistant commented Dec 12, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -109,6 +109,10 @@ public void setLogTableName(String logTableName) {
*/
public void initCleanTask() {
try {
// disable clear task when cleanPeriod <= 0
if (cleanPeriod.isZero() || cleanPeriod.isNegative()) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

添加个info日志吧。提示一下。

@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2023

Codecov Report

Merging #5089 (7e9a343) into develop (0a09db2) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

❗ Current head 7e9a343 differs from pull request most recent head fbbf738. Consider uploading reports for the commit fbbf738 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #5089      +/-   ##
=============================================
- Coverage      48.48%   48.47%   -0.01%     
+ Complexity      4139     4138       -1     
=============================================
  Files            743      743              
  Lines          26520    26523       +3     
  Branches        3294     3295       +1     
=============================================
  Hits           12857    12857              
- Misses         12264    12267       +3     
  Partials        1399     1399              
Impacted Files Coverage Δ
...in/java/io/seata/rm/tcc/config/TCCFenceConfig.java 0.00% <0.00%> (ø)
...torage/file/store/FileTransactionStoreManager.java 56.27% <0.00%> (ø)

@funky-eyes funky-eyes added this to the 2.0.0 milestone Jan 17, 2023
@funky-eyes
Copy link
Contributor

麻烦将pr的登记转到2.0.0的md中,该pr将合并到2.x分支

@funky-eyes funky-eyes added module/tcc tcc module type: optimize mode: TCC TCC transaction mode labels Feb 6, 2023
@dmego
Copy link
Contributor Author

dmego commented Feb 7, 2023

@a364176773 PR登记已转到2.0.0.md

@wangliang181230
Copy link
Contributor

wangliang181230 commented Feb 7, 2023

优化的,develop分支,另外提一个的吗?

@dmego
Copy link
Contributor Author

dmego commented Feb 14, 2023

@wangliang181230 @a364176773 往 2.x 分支上也提交了一个。这个 PR 合到 develop 上吧

Copy link
Contributor

@l81893521 l81893521 left a comment

Choose a reason for hiding this comment

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

LGTM

@l81893521 l81893521 merged commit 357f8e8 into apache:develop Feb 14, 2023
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mode: TCC TCC transaction mode module/tcc tcc module type: optimize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants