pulsar
pulsar copied to clipboard
[fix][client] Fix UnAckedMessageRedeliveryTracker to skip cancelled timeouts
Motivation
UnAckedMessageTracker already guards its periodic ack-timeout TimerTask with Timeout.isCancelled() to avoid executing after cancellation. UnAckedMessageRedeliveryTracker had the same scheduling pattern but lacked this guard, so a cancelled timeout callback could still run and trigger unnecessary redelivery/rescheduling work.
Modifications
Add the t.isCancelled() fast-path return to UnAckedMessageRedeliveryTracker TimerTask.run(...).
Verifying this change
- [x] Make sure that the change passes the CI checks.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
- [ ] Dependencies (add or upgrade a dependency)
- [ ] The public API
- [ ] The schema
- [ ] The default values of configurations
- [ ] The threading model
- [ ] The binary protocol
- [ ] The REST endpoints
- [ ] The admin CLI options
- [ ] The metrics
- [ ] Anything that affects deployment
/pulsarbot rerun-failure-checks
The previous CI failure has been fixed on master. @lhotari Please approve the pending workflows. Thanks!