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 #5918]Fix MessageStoreConfig some typo #5919

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

mxsm
Copy link
Member

@mxsm mxsm commented Jan 22, 2023

Make sure set the target branch to develop

What is the purpose of the change

close #5918
close #5882

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2023

Codecov Report

Merging #5919 (177ff63) into develop (14ad16b) will decrease coverage by 0.06%.
The diff coverage is 42.85%.

@@              Coverage Diff              @@
##             develop    #5919      +/-   ##
=============================================
- Coverage      43.13%   43.08%   -0.06%     
+ Complexity      9005     8986      -19     
=============================================
  Files           1107     1107              
  Lines          78297    78297              
  Branches       10204    10204              
=============================================
- Hits           33776    33733      -43     
- Misses         40302    40341      +39     
- Partials        4219     4223       +4     
Impacted Files Coverage Δ
...ache/rocketmq/store/AllocateMappedFileService.java 39.28% <0.00%> (ø)
...main/java/org/apache/rocketmq/store/CommitLog.java 65.23% <0.00%> (ø)
...ache/rocketmq/store/config/MessageStoreConfig.java 57.77% <46.66%> (ø)
...org/apache/rocketmq/store/DefaultMessageStore.java 46.86% <100.00%> (ø)

... and 25 files with indirect coverage changes

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

}

public void setWarmMapedFileEnable(boolean warmMapedFileEnable) {
this.warmMapedFileEnable = warmMapedFileEnable;
public void setWarmMappedFileEnable(boolean warmMapedFileEnable) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public void setWarmMappedFileEnable(boolean warmMapedFileEnable) {
public void setWarmMappedFileEnable(boolean warmMappedFileEnable) {

@mxsm
Copy link
Member Author

mxsm commented Jan 28, 2023

@Oliverwqcwrw PLS check

Oliverwqcwrw
Oliverwqcwrw previously approved these changes Jan 28, 2023
@@ -81,8 +80,8 @@ public class MessageStoreConfig {
/**
* 1. Register to broker after (startTime + disappearTimeAfterStart)
* 2. Internal msg exchange will start after (startTime + disappearTimeAfterStart)
* A. PopReviveService
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to modify indentation here

Copy link
Member Author

Choose a reason for hiding this comment

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

No need to modify indentation here

This is caused by tool formatting, I will fix it and resubmit later

@mxsm
Copy link
Member Author

mxsm commented Feb 1, 2023

Hi @HScarb PTAL~

HScarb
HScarb previously approved these changes Apr 23, 2023
@@ -275,7 +274,7 @@ public class MessageStoreConfig {
private int commitLogSwapMapReserveFileNum = 100;
private long logicQueueForceSwapMapInterval = 12L * 60 * 60 * 1000;
private long logicQueueSwapMapInterval = 1L * 60 * 60 * 1000;
private long cleanSwapedMapInterval = 5L * 60 * 1000;
private long cleanSwappedMapInterval = 5L * 60 * 1000;
Copy link
Contributor

Choose a reason for hiding this comment

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

These modifications are incompatible thus should be avoided.

@mxsm
Copy link
Member Author

mxsm commented Apr 24, 2023

@caigy PTAL~ thanks

@mxsm mxsm requested a review from caigy April 24, 2023 15:26
Copy link
Member

@Oliverwqcwrw Oliverwqcwrw left a comment

Choose a reason for hiding this comment

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

I have a problem, if the user upgrades from the old version to the new version, it invalidates the parameter because we changed the parameter name

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.

Fix MessageStoreConfig some typo Wrong variable name In MessageStoreConfig.class
5 participants