fluo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [fluo] jkosh44 opened a new pull request #1090: Remove race condition from FluoAdminImpl.numWorkers
Date Sat, 07 Mar 2020 16:30:00 GMT
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message