pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

[fix][client] Fix UnAckedMessageRedeliveryTracker to skip cancelled timeouts

Open Dream95 opened this issue 5 months ago • 2 comments

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

Dream95 avatar Jun 17 '26 10:06 Dream95

/pulsarbot rerun-failure-checks

Dream95 avatar Jun 23 '26 08:06 Dream95

The previous CI failure has been fixed on master. @lhotari Please approve the pending workflows. Thanks!

Dream95 avatar Jun 23 '26 09:06 Dream95