You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/08/01 07:59:58 UTC

[GitHub] [rocketmq] GenerousMan opened a new pull request, #4753: [ISSUE #4725] Optimize the CK/ACK 's invisibleTime in POP consumption mode.

GenerousMan opened a new pull request, #4753:
URL: https://github.com/apache/rocketmq/pull/4753

   **Make sure set the target branch to `develop`**
   
   ## What is the purpose of the change
   Replace scheduled message in POP with timer message.
   In the current POP consumption mode, the InvisibleTime implementation of the CK/ACK message relies on the scheduled message. However, because of the precision limitation of the scheduled message, some CK/ACK messages may work not as expected. Since the completion of RIP-43, rocketmq can already support timing messages with arbitrary delay. Therefore, using this feature can optimize the POP consumption process.
   
   ## Brief changelog
   
   1. Modify the function SetMessageDeliverTimer and getMessageDeliverTimer.
   2. Supplement the unit tests of PopReviveService, make sure the pipeline works well.
   
   ## Verifying this change
   
   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](https://github.com/apache/rocketmq/issues) 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](https://github.com/apache/rocketmq/tree/master/test).
   - [√] 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](http://www.apache.org/licenses/#clas).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] coveralls commented on pull request #4753: [ISSUE #4725] Optimize the CK/ACK 's invisibleTime in POP consumption mode.

Posted by GitBox <gi...@apache.org>.
coveralls commented on PR #4753:
URL: https://github.com/apache/rocketmq/pull/4753#issuecomment-1200940662

   
   [![Coverage Status](https://coveralls.io/builds/51303276/badge)](https://coveralls.io/builds/51303276)
   
   Coverage increased (+0.3%) to 49.163% when pulling **833028ed4ff9614cdec1b3f924181f020706a2db on GenerousMan:popTimer** into **6a95661291a7a94e55b6813d5298b58a779aea2b on apache:develop**.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] zhouxinyu commented on pull request #4753: [ISSUE #4725] Optimize the CK/ACK 's invisibleTime in POP consumption mode.

Posted by GitBox <gi...@apache.org>.
zhouxinyu commented on PR #4753:
URL: https://github.com/apache/rocketmq/pull/4753#issuecomment-1200874215

   @xdkxlk Please help review


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] codecov-commenter commented on pull request #4753: [ISSUE #4725] Optimize the CK/ACK 's invisibleTime in POP consumption mode.

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #4753:
URL: https://github.com/apache/rocketmq/pull/4753#issuecomment-1207634141

   # [Codecov](https://codecov.io/gh/apache/rocketmq/pull/4753?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#4753](https://codecov.io/gh/apache/rocketmq/pull/4753?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (80790e6) into [develop](https://codecov.io/gh/apache/rocketmq/commit/61b14c3f4eb9ec015be2bced3187042a1267b3d8?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (61b14c3) will **decrease** coverage by `0.14%`.
   > The diff coverage is `53.84%`.
   
   ```diff
   @@              Coverage Diff              @@
   ##             develop    #4753      +/-   ##
   =============================================
   - Coverage      45.05%   44.90%   -0.15%     
   + Complexity      7629     7604      -25     
   =============================================
     Files            978      977       -1     
     Lines          67953    67955       +2     
     Branches        8982     8982              
   =============================================
   - Hits           30614    30514     -100     
   - Misses         33570    33651      +81     
   - Partials        3769     3790      +21     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/rocketmq/pull/4753?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...a/org/apache/rocketmq/broker/BrokerController.java](https://codecov.io/gh/apache/rocketmq/pull/4753/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YnJva2VyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9icm9rZXIvQnJva2VyQ29udHJvbGxlci5qYXZh) | `43.89% <0.00%> (-2.74%)` | :arrow_down: |
   | [...cketmq/broker/processor/PopBufferMergeService.java](https://codecov.io/gh/apache/rocketmq/pull/4753/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YnJva2VyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9icm9rZXIvcHJvY2Vzc29yL1BvcEJ1ZmZlck1lcmdlU2VydmljZS5qYXZh) | `40.71% <0.00%> (ø)` | |
   | [...va/org/apache/rocketmq/common/message/Message.java](https://codecov.io/gh/apache/rocketmq/pull/4753/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Y29tbW9uL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9jb21tb24vbWVzc2FnZS9NZXNzYWdlLmphdmE=) | `52.32% <0.00%> (-0.62%)` | :arrow_down: |
   | [...he/rocketmq/broker/processor/PopReviveService.java](https://codecov.io/gh/apache/rocketmq/pull/4753/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YnJva2VyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9icm9rZXIvcHJvY2Vzc29yL1BvcFJldml2ZVNlcnZpY2UuamF2YQ==) | `38.35% <75.00%> (+13.44%)` | :arrow_up: |
   | [...rocketmq/broker/processor/AckMessageProcessor.java](https://codecov.io/gh/apache/rocketmq/pull/4753/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YnJva2VyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9icm9rZXIvcHJvY2Vzc29yL0Fja01lc3NhZ2VQcm9jZXNzb3IuamF2YQ==) | `45.04% <100.00%> (ø)` | |
   | [...broker/processor/ChangeInvisibleTimeProcessor.java](https://codecov.io/gh/apache/rocketmq/pull/4753/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YnJva2VyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9icm9rZXIvcHJvY2Vzc29yL0NoYW5nZUludmlzaWJsZVRpbWVQcm9jZXNzb3IuamF2YQ==) | `65.13% <100.00%> (ø)` | |
   | [...rocketmq/broker/processor/PopMessageProcessor.java](https://codecov.io/gh/apache/rocketmq/pull/4753/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YnJva2VyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9icm9rZXIvcHJvY2Vzc29yL1BvcE1lc3NhZ2VQcm9jZXNzb3IuamF2YQ==) | `38.73% <100.00%> (ø)` | |
   | [...apache/rocketmq/broker/longpolling/PopRequest.java](https://codecov.io/gh/apache/rocketmq/pull/4753/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-YnJva2VyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9icm9rZXIvbG9uZ3BvbGxpbmcvUG9wUmVxdWVzdC5qYXZh) | `31.03% <0.00%> (-13.80%)` | :arrow_down: |
   | [...org/apache/rocketmq/common/stats/StatsItemSet.java](https://codecov.io/gh/apache/rocketmq/pull/4753/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Y29tbW9uL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9yb2NrZXRtcS9jb21tb24vc3RhdHMvU3RhdHNJdGVtU2V0LmphdmE=) | `41.79% <0.00%> (-10.45%)` | :arrow_down: |
   | [...q/namesrv/routeinfo/BrokerHousekeepingService.java](https://codecov.io/gh/apache/rocketmq/pull/4753/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-bmFtZXNydi9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcm9ja2V0bXEvbmFtZXNydi9yb3V0ZWluZm8vQnJva2VySG91c2VrZWVwaW5nU2VydmljZS5qYXZh) | `72.72% <0.00%> (-9.10%)` | :arrow_down: |
   | ... and [28 more](https://codecov.io/gh/apache/rocketmq/pull/4753/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
   
   :mega: Codecov can now indicate which changes are the most critical in Pull Requests. [Learn more](https://about.codecov.io/product/feature/runtime-insights/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] RongtongJin commented on pull request #4753: [ISSUE #4725] Optimize the CK/ACK 's invisibleTime in POP consumption mode.

Posted by GitBox <gi...@apache.org>.
RongtongJin commented on PR #4753:
URL: https://github.com/apache/rocketmq/pull/4753#issuecomment-1204868996

   @GenerousMan  It seems that some UT failed
   
   Results :
   Tests in error: 
     PopReviveServiceTest.testRevive:157 » ConditionTimeout Condition with lambda e...
   Tests run: 188, Failures: 0, Errors: 1, Skipped: 0
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] RongtongJin merged pull request #4753: [ISSUE #4725] Optimize the CK/ACK 's invisibleTime in POP consumption mode.

Posted by GitBox <gi...@apache.org>.
RongtongJin merged PR #4753:
URL: https://github.com/apache/rocketmq/pull/4753


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] zhouxinyu commented on pull request #4753: [ISSUE #4725] Optimize the CK/ACK 's invisibleTime in POP consumption mode.

Posted by GitBox <gi...@apache.org>.
zhouxinyu commented on PR #4753:
URL: https://github.com/apache/rocketmq/pull/4753#issuecomment-1204693592

   @odbozhou You are pending on this PR, please help review and let's merge this PR ASAP.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org