Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QQ: fix bug when subscribing using an already existing consumer tag
When subscribing using a consumer tag that is already in the quorum queues state (but perhaps with a cancelled status) and that has pending messages the next_msg_id which is used to initialise the queue type consumer state did not take the in flight message ids into account. This resulted in some messages occasionally not being delivered to the clint and thus would appear stuck as awaiting acknowledgement for the consumer. NB: this change changes the quorum queue state machine without incrementing the machine version. This is ok as the change only affects the meta data returned from the checkout command, not the actual state of the state machine itself. NB: really the ideal solution would be to make checkout operations async so that any inflight messages are delivered before the checkout result. That is a much bigger change for another day.
- Loading branch information