Permalink
Browse files

Issue-256: Nodes marked down erroneously by ThresholdFailureDetector

  • Loading branch information...
1 parent c2829ed commit 86f0dcaef466601679a4385e4438d19ecada22b1 @afeinberg afeinberg committed Feb 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/java/voldemort/cluster/failuredetector/ThresholdFailureDetector.java
@@ -168,9 +168,9 @@ protected void update(Node node, int successDelta, UnreachableStoreException e)
if(logger.isTraceEnabled())
logger.trace("Node " + node.getId() + " percentage: " + percentage + "%");
- if(percentage >= getConfig().getThreshold())
+ if(percentage >= getConfig().getThreshold() && successDelta > 0)
setAvailable(node);
- else
+ else if (successDelta < 1)
setUnavailable(node, e);
}
}

0 comments on commit 86f0dca

Please sign in to comment.