[ISSUE #9254] Add CombineConsumeQueue to support CQ migration#9256
Merged
lollipopjin merged 3 commits intoapache:developfrom Jun 3, 2025
Merged
[ISSUE #9254] Add CombineConsumeQueue to support CQ migration#9256lollipopjin merged 3 commits intoapache:developfrom
lollipopjin merged 3 commits intoapache:developfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9256 +/- ##
=============================================
+ Coverage 47.96% 48.05% +0.08%
- Complexity 11908 11982 +74
=============================================
Files 1307 1308 +1
Lines 92021 92166 +145
Branches 11775 11789 +14
=============================================
+ Hits 44139 44288 +149
+ Misses 42401 42375 -26
- Partials 5481 5503 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ad190f2 to
61ee2f4
Compare
dc014b5 to
a8996fa
Compare
lizhimins
reviewed
Apr 16, 2025
da78405 to
59ee17a
Compare
lizhimins
reviewed
Apr 18, 2025
lizhimins
reviewed
Apr 18, 2025
lizhimins
reviewed
Apr 18, 2025
lizhimins
reviewed
Apr 18, 2025
lizhimins
reviewed
Apr 18, 2025
lollipopjin
reviewed
Apr 21, 2025
lollipopjin
reviewed
Apr 22, 2025
lollipopjin
reviewed
Apr 22, 2025
lollipopjin
reviewed
Apr 22, 2025
lollipopjin
reviewed
Apr 22, 2025
lollipopjin
reviewed
Apr 22, 2025
lollipopjin
reviewed
Apr 22, 2025
lollipopjin
reviewed
Apr 22, 2025
lollipopjin
reviewed
Apr 22, 2025
lollipopjin
reviewed
Apr 22, 2025
lollipopjin
reviewed
Apr 22, 2025
| } | ||
| } | ||
|
|
||
| public void initializeWithOffset(long offset) { |
Contributor
There was a problem hiding this comment.
This is used for mount --> main in container mode? If so, add some java docs here.
|
|
||
| // update the max and min offset | ||
| if (offset > 0) { | ||
| this.consumeQueueStore.updateCqOffset(topic, queueId, 0L, offset - 1, true); |
Contributor
There was a problem hiding this comment.
How about use two methods for updating CQ offset for min and max offsets.
f56cea9 to
5165c2f
Compare
lizhimins
reviewed
May 29, 2025
| final String storePath, | ||
| final int mappedFileSize, | ||
| final MessageStore messageStore, | ||
| final ConsumeQueueStore consumeQueueStore) { |
Member
There was a problem hiding this comment.
This format looks a bit strange
lizhimins
reviewed
May 29, 2025
lizhimins
reviewed
May 29, 2025
lizhimins
reviewed
May 29, 2025
lizhimins
reviewed
May 29, 2025
|
|
||
| currentReadStore = getInnerStoreByString(messageStoreConfig.getCombineCQPreferCQType()); | ||
| if (currentReadStore == null) { | ||
| log.error("CombineConsumeQueue choosePreferCQ fail, prefer={}", messageStoreConfig.getCombineCQPreferCQType()); |
lizhimins
reviewed
May 29, 2025
lizhimins
reviewed
May 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which Issue(s) This PR Fixes
Fixes #9254
Brief Description
How Did You Test This Change?