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 #6121] Optimize some code style in store module #6122

Merged
merged 4 commits into from
Feb 27, 2023

Conversation

TheR1sing3un
Copy link
Member

close: #6121

Make sure set the target branch to develop

What is the purpose of the change

fix #

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.

1. optimize some typos in store module
@codecov-commenter
Copy link

Codecov Report

Merging #6122 (86535d7) into develop (0f878b5) will increase coverage by 0.01%.
The diff coverage is 91.66%.

@@              Coverage Diff              @@
##             develop    #6122      +/-   ##
=============================================
+ Coverage      43.22%   43.24%   +0.01%     
- Complexity      8846     8851       +5     
=============================================
  Files           1094     1094              
  Lines          77137    77135       -2     
  Branches       10057    10057              
=============================================
+ Hits           33346    33356      +10     
+ Misses         39628    39615      -13     
- Partials        4163     4164       +1     
Impacted Files Coverage Δ
...java/org/apache/rocketmq/store/ha/FlowMonitor.java 95.23% <ø> (ø)
...cketmq/store/ha/autoswitch/AutoSwitchHAClient.java 76.53% <ø> (+0.36%) ⬆️
.../apache/rocketmq/store/ha/DefaultHAConnection.java 65.72% <80.00%> (-1.35%) ⬇️
.../org/apache/rocketmq/store/ha/DefaultHAClient.java 61.85% <100.00%> (+0.31%) ⬆️
.../rocketmq/client/producer/RequestFutureHolder.java 81.39% <0.00%> (-6.98%) ⬇️
.../org/apache/rocketmq/remoting/netty/TlsHelper.java 71.57% <0.00%> (-6.32%) ⬇️
...ketmq/proxy/grpc/v2/channel/GrpcClientChannel.java 49.07% <0.00%> (-2.78%) ⬇️
...rocketmq/client/impl/factory/MQClientInstance.java 46.97% <0.00%> (-1.63%) ⬇️
...rg/apache/rocketmq/remoting/netty/NettyLogger.java 13.60% <0.00%> (-1.37%) ⬇️
... and 24 more

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

RongtongJin
RongtongJin previously approved these changes Feb 20, 2023
…#REPORT_HEADER_SIZE

1. rename DefaultHAClient#REPORT_HEADER to
DefaultHAClient#REPORT_HEADER_SIZE
Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

Hi @TheR1sing3un reference AutoSwitchHAConnection class comments

…ZE and DefaultHAConnection#TRANSFER_HEADER_SIZE

1. optimize comment about DefaultHAClient#REPORT_HEADER_SIZE and
DefaultHAConnection#TRANSFER_HEADER_SIZE
@RongtongJin RongtongJin changed the title [ISSUE #6121]: optimize some code style in store module [ISSUE #6121] Optimize some code style in store module Feb 27, 2023
@RongtongJin
Copy link
Contributor

Hi @TheR1sing3un, plz merge the latest develop branch to pass CI.

@RongtongJin RongtongJin merged commit 487473e into apache:develop Feb 27, 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.

Optimize some code style in store module
6 participants