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 #5684] request code should be short, to support serializeTypeCurrentRPC=ROCKETMQ #5909

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

Conversation

yuz10
Copy link
Member

@yuz10 yuz10 commented Jan 20, 2023

Make sure set the target branch to develop

What is the purpose of the change

#5684

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.

@yuz10 yuz10 linked an issue Jan 20, 2023 that may be closed by this pull request
@RongtongJin
Copy link
Contributor

Error: /home/runner/work/rocketmq/rocketmq/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingServer.java:368:2: 'method def rcurly' has incorrect indentation level 1, expected level should be 4. [Indentation]

@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2023

Codecov Report

Merging #5909 (3d6c096) into develop (f488e20) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             develop    #5909   +/-   ##
==========================================
  Coverage      43.37%   43.37%           
  Complexity      8809     8809           
==========================================
  Files           1090     1090           
  Lines          76412    76409    -3     
  Branches        9981     9981           
==========================================
+ Hits           33145    33146    +1     
- Misses         39118    39128   +10     
+ Partials        4149     4135   -14     
Impacted Files Coverage Δ
...e/rocketmq/remoting/netty/NettyRemotingServer.java 59.53% <100.00%> (+0.26%) ⬆️
...rg/apache/rocketmq/common/stats/StatsSnapshot.java 84.61% <0.00%> (-15.39%) ⬇️
.../apache/rocketmq/common/stats/MomentStatsItem.java 38.09% <0.00%> (-9.53%) ⬇️
...va/org/apache/rocketmq/store/FlushDiskWatcher.java 81.25% <0.00%> (-9.38%) ⬇️
...ache/rocketmq/common/stats/MomentStatsItemSet.java 39.13% <0.00%> (-8.70%) ⬇️
...va/org/apache/rocketmq/common/stats/StatsItem.java 50.00% <0.00%> (-4.17%) ⬇️
...mq/broker/topic/TopicQueueMappingCleanService.java 12.43% <0.00%> (-3.63%) ⬇️
...org/apache/rocketmq/common/stats/StatsItemSet.java 41.79% <0.00%> (-2.99%) ⬇️
...c/main/java/org/apache/rocketmq/common/MixAll.java 41.44% <0.00%> (-1.29%) ⬇️
...rocketmq/client/impl/factory/MQClientInstance.java 48.44% <0.00%> (-0.60%) ⬇️
... and 11 more

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

HScarb
HScarb previously approved these changes Feb 3, 2023
Copy link
Contributor

@echooymxq echooymxq left a comment

Choose a reason for hiding this comment

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

@yuz10 @RongtongJin I also encountered this problem, but i don't recommend doing it through such an indirect way.

I perfer to redefine the compatible code directly.
such as:

public static final int POP_MESSAGE = 200050;
public static final int _POP_MESSAGE = 3442;
public static final int ACK_MESSAGE = 200051;
public static final int _ACK_MESSAGE = 3443;
...

@yuz10
Copy link
Member Author

yuz10 commented Jul 5, 2023

@RongtongJin @echooymxq @HScarb Please review the code again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants