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

Unstable delivery in when more than one consumer is used #289

Closed
piotrwielgolaski-tomtom opened this issue May 10, 2022 · 2 comments
Closed

Comments

@piotrwielgolaski-tomtom

In my case I have 5 consumer register for queue, all works file in 90% of cases.
Occassionally it crash in MockQueue::deliverToConsumerIfPossible with NPE.
1/ NPE is not catch and whole delivery is broken
2/ map from

private final Map<String, ConsumerAndTag> consumersByTag = new LinkedHashMap<>();
is unstable it say it has size 5, but in fact has less elements

I think (2) could be easier fixed with concurrent version of map.

@ledoyen
Copy link
Contributor

ledoyen commented May 11, 2022

Hello @piotrwielgolaski-tomtom , thank you for reporting this.

Could you provide a sample test that demonstrates the issue ? (even if it is flaky and should not fail most of the time)

Thank you !

@ledoyen
Copy link
Contributor

ledoyen commented Oct 18, 2022

Should be fixed with #318

@ledoyen ledoyen closed this as completed Oct 18, 2022
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

No branches or pull requests

2 participants