Description
Link Stealing creates a new connection and disconnects the old connection. These operations are done concurrently.
New connection triggers addConsumer() for active subscriptions and old connection stop causes removeConsumer() for the same.
Problems:
- addConsumer() would throw exception that the sub is already active (if remove did not happen before)
- even if we go past the exception, it will not set the right (new) connection context and consumer info the subs
- removeConsumer() may remove subcription even if it had different connection context (created by linkstealing)
Patch attached.
Attachments
Attachments
Issue Links
- is duplicated by
-
AMQ-5428 Durable Subscriptions are not being setup while link stealing is happening
- Closed