Skip to content

Conversation

@RongtongJin
Copy link
Contributor

@RongtongJin RongtongJin commented Oct 1, 2020

What is the purpose of the change

Polish the log and response remark when service not available

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.

@coveralls
Copy link

coveralls commented Oct 1, 2020

Coverage Status

Coverage decreased (-0.05%) to 51.389% when pulling a07764f on RongtongJin:polish_service_not_available_info into f58dbc3 on apache:develop.

@RongtongJin RongtongJin added this to the 4.8.0 milestone Oct 1, 2020
@vongosling vongosling changed the title [ISSUE# 2334] Polish the log and response remark when service not available [ISSUE #2334] Polish the log and response remark when service not available Oct 9, 2020
@codecov-io
Copy link

Codecov Report

Merging #2335 into develop will decrease coverage by 0.21%.
The diff coverage is 10.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2335      +/-   ##
=============================================
- Coverage      45.81%   45.60%   -0.22%     
+ Complexity      4298     4280      -18     
=============================================
  Files            547      547              
  Lines          35971    35971              
  Branches        4770     4770              
=============================================
- Hits           16481    16404      -77     
- Misses         17433    17505      +72     
- Partials        2057     2062       +5     
Impacted Files Coverage Δ Complexity Δ
...cketmq/broker/processor/ReplyMessageProcessor.java 54.91% <0.00%> (ø) 8.00 <0.00> (ø)
...org/apache/rocketmq/store/DefaultMessageStore.java 55.68% <0.00%> (ø) 107.00 <0.00> (ø)
...ocketmq/broker/processor/SendMessageProcessor.java 41.01% <100.00%> (ø) 26.00 <0.00> (ø)
...tmq/logappender/log4j2/RocketmqLog4j2Appender.java 35.00% <0.00%> (-10.00%) 3.00% <0.00%> (-1.00%)
...ketmq/client/impl/consumer/PullMessageService.java 71.11% <0.00%> (-8.89%) 8.00% <0.00%> (-2.00%)
...org/apache/rocketmq/store/ha/WaitNotifyObject.java 75.00% <0.00%> (-7.70%) 10.00% <0.00%> (-1.00%)
...e/rocketmq/client/impl/consumer/RebalanceImpl.java 50.19% <0.00%> (-5.58%) 33.00% <0.00%> (-3.00%)
...nt/impl/consumer/ConsumeMessageOrderlyService.java 38.98% <0.00%> (-5.42%) 16.00% <0.00%> (-3.00%)
...ain/java/org/apache/rocketmq/test/util/MQWait.java 43.24% <0.00%> (-5.41%) 3.00% <0.00%> (ø%)
...he/rocketmq/client/impl/consumer/ProcessQueue.java 57.67% <0.00%> (-5.12%) 31.00% <0.00%> (-1.00%)
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f58dbc3...a07764f. Read the comment docs.

// Failed
case CREATE_MAPEDFILE_FAILED:
log.info("create mapped file failed, server is busy or broken.");
log.warn("create mapped file failed, server is busy or broken.");
Copy link
Member

Choose a reason for hiding this comment

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

Good catch

@vongosling vongosling merged commit c932941 into apache:develop Oct 12, 2020
@vongosling vongosling linked an issue Oct 12, 2020 that may be closed by this pull request
GenerousMan pushed a commit to GenerousMan/rocketmq that referenced this pull request Aug 12, 2022
…ot available (apache#2335)

* enhancement(response & log):polish the log and response remark when service not available

* enhancement(response remark & log): make log and response remark better understand

* chore(style): modify code style to pass CI tests
pulllock pushed a commit to pulllock/rocketmq that referenced this pull request Oct 19, 2023
…ot available (apache#2335)

* enhancement(response & log):polish the log and response remark when service not available

* enhancement(response remark & log): make log and response remark better understand

* chore(style): modify code style to pass CI tests
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.

Polish the log and response remark when service not available

4 participants