curator icon indicating copy to clipboard operation
curator copied to clipboard

Fix DistributedDoubleBarrier enter and leave methods because using the same watcher affects each other

Open nailsoul opened this issue 3 years ago • 0 comments

Scenario: QTY clients call the enter method, QTY-1 clients call the leave method, the number of clients is not enough so it blocks, and the working directory leaves the smallest node. At this time, the smallest node client receives the notification that the ready node is created to wake up the thread , it is checked that only one node deletes the node, and other clients are woken up Solution: use different watchers for enter and leaver methods Test case: TestDistributedDoubleBarrier.testEnterAffectLeaveByWatcher

nailsoul avatar Apr 12 '22 18:04 nailsoul