Skip to content

GH-1290. Fix barrier bypass in DistributedDoubleBarrier due to spurious wakeups or SyncConnected events#1291

Open
FluffySkyCat wants to merge 1 commit intoapache:masterfrom
appian:GH-1290
Open

GH-1290. Fix barrier bypass in DistributedDoubleBarrier due to spurious wakeups or SyncConnected events#1291
FluffySkyCat wants to merge 1 commit intoapache:masterfrom
appian:GH-1290

Conversation

@FluffySkyCat
Copy link
Copy Markdown

Fixes GH-1290.

Replace the do { ... } while (false) in internalEnter() with a while (true) loop that re-checks the ZooKeeper children count after every wakeup. This ensures the barrier condition is always verified before returning.

Also removes the hasBeenNotified flag as redundant now that the check is performed in the while loop.

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.

DistributedDoubleBarrier - Barrier bypass due to spurious wakeups or SyncConnected evenets

1 participant