-
Notifications
You must be signed in to change notification settings - Fork 444
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
[okta] Fix concurrent modification exception #6507
[okta] Fix concurrent modification exception #6507
Conversation
0890944
to
ebd8a63
Compare
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
🌐 Coverage report
|
Use the entrySet().removeIf() lambda to perform the remove operation on a map instead of calling remove() on the map while looping over the entrySet() items. Fixes elastic#6506
[git-generate] cd packages/okta elastic-package changelog add --link elastic#6507 --next patch --type bugfix --description "Fix a concurrent modification exception that occurred while modifying okta.target[].detailEntry."
ebd8a63
to
e94273c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's disturbing that this doesn't generate a {meaningful,any} error during execution.
de.entrySet().removeIf(entry -> | ||
entry.getKey() != "methodTypeUsed" && | ||
entry.getKey() != "methodUsedVerifiedProperties"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go has spoiled me with map iteration (3.) and elem deletion.
packages/okta/data_stream/system/_dev/test/pipeline/test-okta-system-events.log
Outdated
Show resolved
Hide resolved
Package okta - 1.22.1 containing this change is available at https://epr.elastic.co/search?package=okta |
Use the entrySet().removeIf() lambda to perform the remove operation on a map instead of calling remove() on the map while looping over the entrySet() items. Fixes #6506
What does this PR do?
Use the entrySet().removeIf() lambda to perform the remove operation on a map instead of calling remove() on the map while looping over the entrySet() items.
Fixes #6506
Checklist
changelog.yml
file.