Skip to content

fix: avoid concurrent modification in base data cache - #7019

Open
TheoLi0905 wants to merge 1 commit into
apache:masterfrom
TheoLi0905:codex/fix-7018-cache-concurrency
Open

fix: avoid concurrent modification in base data cache#7019
TheoLi0905 wants to merge 1 commit into
apache:masterfrom
TheoLi0905:codex/fix-7018-cache-concurrency

Conversation

@TheoLi0905

@TheoLi0905 TheoLi0905 commented Aug 31, 2026

Copy link
Copy Markdown

Fixes #7018

Publish immutable selector and rule list snapshots, and use atomic ConcurrentMap compute operations instead of modifying cached lists in place.

Tests:

  • BaseDataCacheTest and CommonPluginDataSubscriberTest
  • LocalPluginControllerTest

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

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.

[BUG] ConcurrentModificationException may occur when deleting selector or rule

1 participant