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 #7087] fix:consumer offset compatible problem caused by LmqConsumerOffsetManager #7090

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

humkum
Copy link
Contributor

@humkum humkum commented Jul 28, 2023

…ager

Which Issue(s) This PR Fixes

Fixes #7087

Brief Description

How Did You Test This Change?

@codecov-commenter
Copy link

Codecov Report

Merging #7090 (fde0f80) into develop (d797377) will decrease coverage by 0.08%.
Report is 2 commits behind head on develop.
The diff coverage is 1.81%.

@@              Coverage Diff              @@
##             develop    #7090      +/-   ##
=============================================
- Coverage      42.78%   42.70%   -0.08%     
+ Complexity      9304     9288      -16     
=============================================
  Files           1138     1138              
  Lines          81252    81309      +57     
  Branches       10636    10643       +7     
=============================================
- Hits           34762    34726      -36     
- Misses         42152    42241      +89     
- Partials        4338     4342       +4     
Files Changed Coverage Δ
...java/org/apache/rocketmq/common/ConfigManager.java 59.45% <ø> (ø)
...cketmq/broker/offset/LmqConsumerOffsetManager.java 32.25% <1.81%> (-44.06%) ⬇️

... and 24 files with indirect coverage changes

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

@RongtongJin RongtongJin changed the title fix:consumer offset compatible problem caused by LmqConsumerOffsetManager [ISSUE #7087] fix:consumer offset compatible problem caused by LmqConsumerOffsetManager Jul 29, 2023
@cserwen cserwen requested a review from tianliuliu August 1, 2023 02:48
@ferrirW
Copy link
Contributor

ferrirW commented Aug 7, 2023

@humkum It seems that changes involving file names are generic, so consider placing the compatibility logic in the parent class ConfigManager

Please help review whether such modify is appropriate. @RongtongJin @tianliuliu

@@ -36,6 +40,92 @@ public LmqConsumerOffsetManager(BrokerController brokerController) {
super(brokerController);
}

@Override
public boolean load() {
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO, compatibility in the ConfigManager would be better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Compatibility logic can not remove to parent class, because it involves many different implementation methods, such as configFilePath, which can not obtain in parent class.

@humkum
Copy link
Contributor Author

humkum commented Oct 10, 2023

I made some changes to fix the compatibility issues for upgrades and rollbacks, please help to review, thanks. @RongtongJin @tianliuliu

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] Compatible problem caused by LMQ(Light Message Queue)
3 participants