You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/08/14 17:20:41 UTC
[GitHub] [pulsar] GuoHaoZai opened a new issue, #17094: [improve][broker]: DelayedDeliveryTracker init and addMessage
GuoHaoZai opened a new issue, #17094:
URL: https://github.com/apache/pulsar/issues/17094
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Motivation
1. PersistentDispatcherMultipleConsumers.java use double check lock init DelayedDeliveryTracker
2. PersistentDispatcherMultipleConsumers.java not lock when msgMetadata.hasDeliverAtTime return false
3. InMemoryDelayedDeliveryTracker.java `addMessage` method add lock to ensure thread safe
### Solution
https://github.com/apache/pulsar/pull/17092
### Alternatives
_No response_
### Anything else?
_No response_
### Are you willing to submit a PR?
- [X] I'm willing to submit a 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@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [improve][broker]: DelayedDeliveryTracker init and addMessage [pulsar]
Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat closed issue #17094: [improve][broker]: DelayedDeliveryTracker init and addMessage
URL: https://github.com/apache/pulsar/issues/17094
--
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@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [improve][broker]: DelayedDeliveryTracker init and addMessage [pulsar]
Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat commented on issue #17094:
URL: https://github.com/apache/pulsar/issues/17094#issuecomment-6388895259
Thanks @GuoHaoZai. The delayed delivery tracker setup has been rewritten since then. `trackDelayedDelivery` now creates the tracker asynchronously and calls `addMessage` under the dispatcher lock, so the double-checked locking this issue describes no longer exists, and #17092 was closed for the same reason. Closing as not planned. If you see a thread-safety problem in the current code, please open a new issue against master.
--
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@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] github-actions[bot] commented on issue #17094: [improve][broker]: DelayedDeliveryTracker init and addMessage
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #17094:
URL: https://github.com/apache/pulsar/issues/17094#issuecomment-1246144474
The issue had no activity for 30 days, mark with Stale label.
--
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@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org