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

avoid ConcurrentModificationExceptions when processing domain updates #2277

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

havetisyan
Copy link
Collaborator

@havetisyan havetisyan commented Aug 18, 2023

the PR addresses #2269

if (dataCache != null) {
deletedRoles = dataCache.getDomainData().getRoles();
if (deletedRoles != null && !validRoles.isEmpty()) {
deletedRoles.removeIf(item -> validRoles.contains(item.getName()));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is what the issue is. deleteRoles is pointing to our cache so we cannot modify that list

@abvaidya abvaidya merged commit f868d65 into master Aug 18, 2023
@abvaidya abvaidya deleted the excp branch August 18, 2023 18:44
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

Successfully merging this pull request may close these issues.

2 participants