-
Notifications
You must be signed in to change notification settings - Fork 280
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
[BUG] ConcurrentModificationException in security package #3404
Comments
The problem seems to be related to copying the HashMap in |
Thank you @HoffmannTom . There was a change released in 2.9 that made the ConcurrentModificationException occur less frequently, but it was pointed out here that this call could (in rare circumstances) lead to a ConcurrentModificationException. Thank you for filing this issue! |
@cwperks Thanks for the lightning-fast reply :) |
We've had rare reports of modification exceptions from customers around the config objects. Using a lock object to protect the internal collection from modification on other threads and changing the behavoir of the getter to pass a copy of the collection instead of direct collection references. - Resolves opensearch-project#3404 Signed-off-by: Peter Nied <[email protected]>
We've had rare reports of modification exceptions from customers around the config objects. Using a lock object to protect the internal collection from modification on other threads and changing the behavoir of the getter to pass a copy of the collection instead of direct collection references. - Resolves opensearch-project#3404 Signed-off-by: Peter Nied <[email protected]>
It seems this issue has not been resolved. I'm using OS v2.12.0 and still encountering the same exception. For more details, please refer to this post: |
@javad87 Could you open up a new issue with the call stack that you encountered this issue on and any other details? |
Describe the bug
An update call via REST-API failed with an internal error.
Looking at the log-file, we see a stack trace with a ConcurrentModificationException of a HashMap.
The errors happen very rarely, less than 1x per month. The stacktrace should hopefully help out to narrow down the cause.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Updating the index should work reliably
Plugins
Screenshots
not available
Host/Environment (please complete the following information):
Additional context
Stacktrace:
The text was updated successfully, but these errors were encountered: