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

Deadlocks using TestMsbAdapterFactory #385

Open
sebastiaansamyn-tc opened this issue May 15, 2017 · 0 comments
Open

Deadlocks using TestMsbAdapterFactory #385

sebastiaansamyn-tc opened this issue May 15, 2017 · 0 comments

Comments

@sebastiaansamyn-tc
Copy link

We have run into a deadlock while running tests with the TestMsbAdapterFactory as brokerAdapterFactory. In our case it happened when we had a responder server that handed off the work to another thread that then tried to send a response with the responder that it got from the response context.

The problem seems to be that multiple threads access methods on the TestMsbStorageForAdapterFactory instance of that factory concurrently and everything is synchronized, so the entire thing deadlocks.

It looks like this could be solved by using java.util.concurrent.ConcurrentMap instances.

@sebastiaansamyn-tc sebastiaansamyn-tc changed the title Deadlocks using TestMsbStorageForAdapterFactory Deadlocks using TestMsbAdapterFactory May 15, 2017
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

1 participant