jkosh44 opened a new pull request #1090: Remove race condition from FluoAdminImpl.numWorkers URL: https://github.com/apache/fluo/pull/1090 The pattern of checking if a ZNode exists and then getting it's children contains a race condition. If the ZNode is deleted after the existence check but before getting the children then a NoNodeException will be thrown instead of returning 0. Instead we skip the existence check and just return 0 when a NoNodeException is thrown. This will avoid the race condition. Fixes #1089
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
