prabhatbhattarai / project-voldemort

Automatically exported from code.google.com/p/project-voldemort
Apache License 2.0
0 stars 0 forks source link

FailureDetectorConfig setThresholdCountMinimum defect #349

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
master branch
voldemort / src / java / voldemort / cluster / failuredetector / 
FailureDetectorConfig.java
line 316
public FailureDetectorConfig setThresholdCountMinimum(int 
thresholdCountMinimum) {
        if(threshold < 0)
            throw new IllegalArgumentException("thresholdCountMinimum must be greater than or equal to 0");

        this.thresholdCountMinimum = thresholdCountMinimum;
        return this;
    }

The if clause is wrong
        if(threshold < 0)

Original issue reported on code.google.com by panxiaoz...@gmail.com on 17 May 2011 at 11:34

GoogleCodeExporter commented 8 years ago
Fixed in my rebalance branch which will be merged to master soon. Thanks!

Original comment by rsumb...@gmail.com on 20 May 2011 at 2:22