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

Fixing the ResteasyViolationException#toString concurrency #2806

Merged
merged 3 commits into from Sep 1, 2021

Conversation

rhuan080
Copy link
Contributor

@rhuan080 rhuan080 commented Jun 1, 2021

Signed-off-by: Rhuan Rocha rhuan080@gmail.com

This issue was identified in a scenario that the exception' object is delegated to a task that works in other threads. As it uses the iterator on ResteasyViolationException#toString and it calls the convertViolations method (that modifies the violationLists) it can generate an issue if called concurrently. I have seen it on 3.9.3.SP1-redhat-00001. It is why I'm sending a PR to this branch. However, the main branch has the same problem. I'll send a PR to the main soon.

Signed-off-by: Rhuan Rocha <rhuan080@gmail.com>
@jamezp
Copy link
Contributor

jamezp commented Jun 1, 2021

This will need a JIRA too please, https://issues.redhat.com/browse/RESTEASY.

@rhuan080
Copy link
Contributor Author

rhuan080 commented Jun 1, 2021

Signed-off-by: Rhuan Rocha <rhuan080@gmail.com>
@rhuan080
Copy link
Contributor Author

Hi,

Any update on this?

@jamezp
Copy link
Contributor

jamezp commented Aug 18, 2021

Hi @rhuan080. Sorry for the delay. Hopefully I'll get a chance to address these this week.

@rhuan080
Copy link
Contributor Author

Thank you @jamezp!

@jamezp jamezp merged commit 3d35fd7 into resteasy:3.9 Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants