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

Fix start() and shutdown() of DefaultMessagingProcessor #7838

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

Conversation

redlsz
Copy link
Contributor

@redlsz redlsz commented Feb 20, 2024

Which Issue(s) This PR Fixes

Fixes #7837

Brief Description

  1. Complete ReceiptHandleProcessor's start() and shutdown()
  2. Complete DefaultMessagingProcessor‘s start() and shutdown()

How Did You Test This Change?

UT

@@ -124,6 +124,12 @@ public static DefaultMessagingProcessor createForClusterMode(RPCHook rpcHook) {

protected void init() {
this.appendStartAndShutdown(this.serviceManager);
this.appendStartAndShutdown(producerProcessor);
Copy link
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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?

@codecov-commenter
Copy link

Codecov 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) to head (c8638f6).
Report is 3 commits behind head on develop.

Files Patch % Lines
...tmq/proxy/processor/DefaultMessagingProcessor.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            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           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@leizhiyuan
Copy link
Contributor

any update?

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.

[Bug] Receipt handle auto-renew scheduled task is not started
5 participants