You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a master-master mysql replica, a couple of transports with different queue_name-s and separate consumers by transports, it can easily happen that the cleanup statements will result in replication error due to preventable race-conditions.
If we run distinct consumers against the replicated dbs, it should not happen, if the cleanup queries would filter for the queue name. Currently every consumer deletes old records even from unrelated queues.
I know that we could workaround this problem with separate tables, but I think it might be a nice and correct addition for the current implementation.
The current implementation does not filter for the 'queu_name', but it should:
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected
4.4-7.1
Description
Using a master-master mysql replica, a couple of transports with different queue_name-s and separate consumers by transports, it can easily happen that the cleanup statements will result in replication error due to preventable race-conditions.
If we run distinct consumers against the replicated dbs, it should not happen, if the cleanup queries would filter for the queue name. Currently every consumer deletes old records even from unrelated queues.
I know that we could workaround this problem with separate tables, but I think it might be a nice and correct addition for the current implementation.
The current implementation does not filter for the 'queu_name', but it should:
How to reproduce
Possible Solution
Do the cleanup only for the configured queue_name.
In
Symfony\Component\Messenger\Bridge\Doctrine\Transport::get
Additional Context
We experienced this issue with symfony 4.4, but I can see from the code that it still works the same way.
The text was updated successfully, but these errors were encountered: