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

[ISSUE #7523] message will flush timeout when transientStorePoolEnable=true and flushDiskType=SYNC_FLUSH #7524

Merged
merged 35 commits into from
Nov 2, 2023

Conversation

fujian-zfj
Copy link
Contributor

Which Issue(s) This PR Fixes

Fixes #7523

Brief Description

1.set transientStorePoolEnable=true, flushDiskType=SYNC_FLUSH,
2.start broker
3.then send message to broker, client receives FLUSH_DISK_TIMEOUT error

By arthas, i find GroupCommitService always return FLUSH_DISK_TIMEOUT

fujian-zfj and others added 30 commits November 30, 2021 20:19
// two times the flush
boolean flushOK = CommitLog.this.mappedFileQueue.getFlushedWhere() >= req.getNextOffset();
for (int i = 0; i < 2 && !flushOK; i++) {
boolean flushOK = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

How about flushOK=CommitLog.this.mappedFileQueue.getFlushedWhere() >= req.getNextOffset() when init? Prevent every request from flushing at least once.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@codecov-commenter
Copy link

Codecov Report

Merging #7524 (2876500) into develop (26fa050) will increase coverage by 0.02%.
The diff coverage is 66.66%.

@@              Coverage Diff              @@
##             develop    #7524      +/-   ##
=============================================
+ Coverage      42.98%   43.01%   +0.02%     
- Complexity      9674     9680       +6     
=============================================
  Files           1158     1158              
  Lines          83982    83987       +5     
  Branches       10916    10917       +1     
=============================================
+ Hits           36102    36128      +26     
+ Misses         43380    43366      -14     
+ Partials        4500     4493       -7     
Files Coverage Δ
...main/java/org/apache/rocketmq/store/CommitLog.java 58.78% <66.66%> (-0.16%) ⬇️

... and 12 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@RongtongJin RongtongJin merged commit 46962c2 into apache:develop Nov 2, 2023
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.

[Bug] message will flush timeout when transientStorePoolEnable=true and flushDiskType=SYNC_FLUSH
4 participants