You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "redlsz (via GitHub)" <gi...@apache.org> on 2025/09/02 11:57:42 UTC

[PR] Fix start() and shutdown() of DefaultMessagingProcessor [rocketmq]

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

   <!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. -->
   
   ### Which Issue(s) This PR Fixes
   
   <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword>) to ensure automatic closure. -->
   
   Fixes #7837 
   
   ### Brief Description
   
   <!-- Write a brief description for your pull request to help the maintainer understand the reasons behind your changes. -->
   
   1. Complete ReceiptHandleProcessor's start() and shutdown()
   2. Complete DefaultMessagingProcessor‘s start() and shutdown()
   
   ### How Did You Test This Change?
   
   <!-- In order to ensure the code quality of Apache RocketMQ, we expect every pull request to have undergone thorough testing. -->
   
   UT
   


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] Fix start() and shutdown() of DefaultMessagingProcessor [rocketmq]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #7838:
URL: https://github.com/apache/rocketmq/pull/7838#issuecomment-1963268711

   ## [Codecov](https://app.codecov.io/gh/apache/rocketmq/pull/7838?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   Attention: Patch coverage is `50.00000%` with `1 lines` in your changes are missing coverage. Please review.
   > Project coverage is 42.95%. Comparing base [(`7dc0e5a`)](https://app.codecov.io/gh/apache/rocketmq/commit/7dc0e5aed83f738f5554cb5f00e0da5dabc06e04?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`c8638f6`)](https://app.codecov.io/gh/apache/rocketmq/pull/7838?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   > Report is 3 commits behind head on develop.
   
   | [Files](https://app.codecov.io/gh/apache/rocketmq/pull/7838?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [...tmq/proxy/processor/DefaultMessagingProcessor.java](https://app.codecov.io/gh/apache/rocketmq/pull/7838?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cHJveHkvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3JvY2tldG1xL3Byb3h5L3Byb2Nlc3Nvci9EZWZhdWx0TWVzc2FnaW5nUHJvY2Vzc29yLmphdmE=) | 0.00% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/rocketmq/pull/7838?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@            Coverage Diff             @@
   ##             develop    #7838   +/-   ##
   ==========================================
     Coverage      42.95%   42.95%           
   - Complexity      9909     9914    +5     
   ==========================================
     Files           1190     1190           
     Lines          85984    86016   +32     
     Branches       11079    11079           
   ==========================================
   + Hits           36932    36946   +14     
   - Misses         44472    44490   +18     
     Partials        4580     4580           
   ```
   
   
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/rocketmq/pull/7838?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] Fix start() and shutdown() of DefaultMessagingProcessor [rocketmq]

Posted by "redlsz (via GitHub)" <gi...@apache.org>.
redlsz commented on code in PR #7838:
URL: https://github.com/apache/rocketmq/pull/7838#discussion_r1495522726


##########
proxy/src/main/java/org/apache/rocketmq/proxy/processor/DefaultMessagingProcessor.java:
##########
@@ -124,6 +124,12 @@ public static DefaultMessagingProcessor createForClusterMode(RPCHook rpcHook) {
 
     protected void init() {
         this.appendStartAndShutdown(this.serviceManager);
+        this.appendStartAndShutdown(producerProcessor);

Review Comment:
   > It seems that it's not necessary to start processors because this issue is only related to receiptHandleManager.
   
   Indeed, this issue is only related to receiptHandleProcessor. But all these processors extend AbstractStartAndShutdown and there is no caller, which may be error-prone over time?



-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] Fix start() and shutdown() of DefaultMessagingProcessor [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7838:
URL: https://github.com/apache/rocketmq/pull/7838#issuecomment-2702367865

   This PR is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR.


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] Fix start() and shutdown() of DefaultMessagingProcessor [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #7838: Fix start() and shutdown() of DefaultMessagingProcessor
URL: https://github.com/apache/rocketmq/pull/7838


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] Fix start() and shutdown() of DefaultMessagingProcessor [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7838:
URL: https://github.com/apache/rocketmq/pull/7838#issuecomment-2709149855

   This PR was closed because it has been inactive for 3 days since being marked as stale.


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] Fix start() and shutdown() of DefaultMessagingProcessor [rocketmq]

Posted by "leizhiyuan (via GitHub)" <gi...@apache.org>.
leizhiyuan commented on PR #7838:
URL: https://github.com/apache/rocketmq/pull/7838#issuecomment-1978361962

   any update?


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] Fix start() and shutdown() of DefaultMessagingProcessor [rocketmq]

Posted by "drpmma (via GitHub)" <gi...@apache.org>.
drpmma commented on code in PR #7838:
URL: https://github.com/apache/rocketmq/pull/7838#discussion_r1495377053


##########
proxy/src/main/java/org/apache/rocketmq/proxy/processor/DefaultMessagingProcessor.java:
##########
@@ -124,6 +124,12 @@ public static DefaultMessagingProcessor createForClusterMode(RPCHook rpcHook) {
 
     protected void init() {
         this.appendStartAndShutdown(this.serviceManager);
+        this.appendStartAndShutdown(producerProcessor);

Review Comment:
   It seems that it's not necessary to start processors because this issue is only related to receiptHandleManager.



-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] Fix start() and shutdown() of DefaultMessagingProcessor [rocketmq]

Posted by "yuz10 (via GitHub)" <gi...@apache.org>.
yuz10 merged PR #7838:
URL: https://github.com/apache/rocketmq/pull/7838


-- 
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: commits-unsubscribe@rocketmq.apache.org

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