Skip to content

redpanda_migrator: fix data race on groupsMigrator admin clients#4312

Open
mmatczuk wants to merge 1 commit intomainfrom
mmt/redpanda_migrator-fixes-v2
Open

redpanda_migrator: fix data race on groupsMigrator admin clients#4312
mmatczuk wants to merge 1 commit intomainfrom
mmt/redpanda_migrator-fixes-v2

Conversation

@mmatczuk
Copy link
Copy Markdown
Contributor

Commits

  • fix data race on groupsMigrator admin clients

Jira

  • CON-416

groupsMigrator.enabled() reads srcAdm/dstAdm without synchronization
while onInputConnected/onOutputConnected write them concurrently under
Migrator.mu. Add a dedicated RWMutex to groupsMigrator and use setter
methods so writes are properly synchronized with the read in enabled().

Fixes CON-416
@claude
Copy link
Copy Markdown

claude Bot commented Apr 20, 2026

Commits
LGTM

Review
Narrow fix adds a dedicated RWMutex to groupsMigrator with setter methods so that enabled() reads srcAdm/dstAdm safely against concurrent writes from onInputConnected/onOutputConnected. Lock ordering (outer Migrator.mu held while calling setters that take groupsMigrator.mu) is consistent and acyclic.

LGTM

This was referenced Apr 20, 2026
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.

1 participant