Skip to content

fix(consul): use concurrent watcher state maps - #7145

Open
dengliming wants to merge 2 commits into
apache:masterfrom
dengliming:fix-6783-consul-watcher-concurrent-maps
Open

dengliming wants to merge 2 commits into
apache:masterfrom
dengliming:fix-6783-consul-watcher-concurrent-maps

Conversation

@dengliming

Copy link
Copy Markdown
Member

Summary

  • replace shared watcher index and cache HashMaps with ConcurrentHashMaps
  • preserve missing-index behavior without storing null values
  • add regression coverage for concurrent watcher state maps

Testing

  • mvn -q -pl shenyu-sync-data-center/shenyu-sync-data-consul -am -DskipTests=false -Dcheckstyle.skip=false -Dtest=ConsulSyncDataServiceTest -DfailIfNoTests=false test

Fixes #6783

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] ConsulSyncDataService uses non-thread-safe HashMap for shared state accessed by 7 concurrent watcher threads

2 participants