-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Conversation
// two times the flush | ||
boolean flushOK = CommitLog.this.mappedFileQueue.getFlushedWhere() >= req.getNextOffset(); | ||
for (int i = 0; i < 2 && !flushOK; i++) { | ||
boolean flushOK = false; |
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.
How about flushOK=CommitLog.this.mappedFileQueue.getFlushedWhere() >= req.getNextOffset() when init? Prevent every request from flushing at least once.
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.
OK
Codecov Report
@@ 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
... and 12 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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