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 #8979] Add configurable switch for timer message retry logic #8980

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

Conversation

chi3316
Copy link
Contributor

@chi3316 chi3316 commented Nov 25, 2024

Which Issue(s) This PR Fixes

Fixes #8979

Brief Description

  • Added a configuration switch TimerEnableRetryUntilSuccess to control retry behavior.
  • When TimerEnableRetryUntilSuccess is disabled, a message will be retried up to 3 times before being discarded.
  • Improved logging to better reflect message processing and retry status.

@codecov-commenter
Copy link

codecov-commenter commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 18.42105% with 31 lines in your changes missing coverage. Please review.

Project coverage is 47.64%. Comparing base (a8779c0) to head (f7415e1).

Files with missing lines Patch % Lines
...apache/rocketmq/store/timer/TimerMessageStore.java 17.64% 22 Missing and 6 partials ⚠️
...ache/rocketmq/store/config/MessageStoreConfig.java 25.00% 3 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #8980      +/-   ##
=============================================
- Coverage      47.70%   47.64%   -0.07%     
+ Complexity     11782    11759      -23     
=============================================
  Files           1304     1304              
  Lines          91188    91195       +7     
  Branches       11713    11712       -1     
=============================================
- Hits           43502    43448      -54     
- Misses         42315    42372      +57     
- Partials        5371     5375       +4     

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


🚨 Try these New Features:

}
return PUT_NO_RETRY;
return PUT_NEED_RETRY;
}

public MessageExtBrokerInner convertMessage(MessageExt msgExt, boolean needRoll) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be beneficial to include a unit test

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.

[Enhancement] Optimize Timer Message Retry Mechanism
3 participants