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
[Urgent] Concurrency issue when a @Async method is first time accessed #12
Comments
Can you supply a unit test case? I need a unit test to make sure the issue is actually fixed and to avoid it being triggered again in the future |
Here you go
|
I will release new version to fix it today. |
Thanks. ConcurrentHashMap works as well. |
Have released. It might take a while for you to find it in maven centeral repo. |
Sorry, I find that the version 0.1.10 does not include the fix and the problem is still there. Would you please help to check? |
@knuclechan |
Sorry, my bad. btw, I noticed some not very critical issue on the old version. But I haven't got the time to repeat it or to write a test case for you. Just hope you can be aware of it
This will fail to compile (not always fail, I cannot find the exact condition)
But this is ok
|
@knuclechan |
I encounter an ConcurrentModificationException as shown below.
It happens when a @ Async method is first time called by more than 1 threads. Say, if there's 2 thread concurrently access the method, one of them goes through, another thread will encounter ConcurrentModificationException.
I look into it a bit, and I am pretty sure a lock is required at here.
IndyHelpers.java (Original)
Suggested change:
This issue is super important to fix. Would you please release a new version after fixing it? Thanks a lot!
The text was updated successfully, but these errors were encountered: