Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple fixes for Redis event bus #1629

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

quantranhong1999
Copy link
Member

…e the Group

So the consumer healthcheck work for Redis event bus group queues too.
So the test tests all components, not only EventbusConsumers
…bbit/Redis event bus group queues

Otherwise:
- Wrong queues to be monitored
- Zombie existing RabbitMQEventBus group queues without consumers (result of a RabbitMQ -> Redis event bus switch) would force restarting RedisEventBus consumers everytime.
…hen Redis event bus

When Redis event bus mode:
`emailAddressContactEvent-workQueue-org.apache.james.events.TmailGroupRegistrationHandler$GroupRegistrationHandlerGroup` was created by Redis event bus (of course)
`emailAddressContactEvent-workQueue-org.apache.james.events.GroupRegistrationHandler$GroupRegistrationHandlerGroup` was created by RabbitMQEventBus which should not.
simple reason: Redis handles the event bus key part, not RabbitMQ.
…P event bus(es)

Fixes linagora#1609
As EventDeadLettersRedeliverService relies on the Set<EventBus>. Missing the event bus would fail to reprocess according events...

Rabbit eventbus:       `Event buses registered for EventDeadLettersRedeliverService: [mailboxEvent, jmapEvent, emailAddressContactEvent, tmailEvent]`
Redis eventbus before: `Event buses registered for EventDeadLettersRedeliverService: [emailAddressContactEvent, tmailEvent]`
Redis eventbus after:  `Event buses registered for EventDeadLettersRedeliverService: [jmapEvent, mailboxEvent, emailAddressContactEvent, tmailEvent]`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant