Permalink
Browse files

Fix Issue 208: Check usage Object.wait() in AbstractFailureDetector.

  • Loading branch information...
1 parent 76b53ff commit 8974ed6ac5496600157ca307b8a51478c518433f @ijuma ijuma committed with afeinberg Feb 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/java/voldemort/cluster/failuredetector/AbstractFailureDetector.java
@@ -131,7 +131,7 @@ public void waitForAvailability(Node node) throws InterruptedException {
NodeStatus nodeStatus = getNodeStatus(node);
synchronized(nodeStatus) {
- if(!isAvailable(node))
+ while(!isAvailable(node))
nodeStatus.wait();
}
}

0 comments on commit 8974ed6

Please sign in to comment.