-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Preconditions
- Magento version 2.3.x & 2.4-develop
Steps to reproduce
- Create new consumer, subscribe it to empty topic
- Start consumer using bin/magento queue:consumers:start ConsumerName --max-messages 1
Expected result
- Consumer tries to get 1 message from empty queue, exits.
Actual result
- Consumer keeps listening forever, never exits.
Additional information
This behaviour is caused by the following commit: https://github.com/magento-partners/magento2ee/commit/19721b54aae0f18632b58486a3af544d37e5a866#diff-9876e6dc23c7c514b028b967d58aa0b0
Which unfortunately isn't public because message queue was developed for EE. The class CallbackInvoker was changed so the path taken when --max-messages is supplied enters an endless loop instead of exiting.
Only information supplied is this: "MAGETWO-57177: [Critical][OMS] Max messages makes the consumer die after existing messages are consumed" even though this is expected behaviour according to the developer documentation.
Can anyone please explain the reason for this change? Opening issue here because message queue is being moved to community edition in 2.3.0
Metadata
Metadata
Assignees
Labels
Type
Projects
Status