Permalink
Browse files

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

  • Loading branch information...
1 parent 2b0efa0 commit 3ad9a5a38c70a89cd105fb84afd53e0385beee23 @ijuma ijuma committed 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 3ad9a5a

Please sign in to comment.