diff --git a/src/java/org/apache/cassandra/repair/RepairSession.java b/src/java/org/apache/cassandra/repair/RepairSession.java index ea31ff3702..942049bc47 100644 --- a/src/java/org/apache/cassandra/repair/RepairSession.java +++ b/src/java/org/apache/cassandra/repair/RepairSession.java @@ -345,8 +345,8 @@ public class RepairSession extends WrappedRunnable implements IEndpointStateChan if (!endpoints.contains(endpoint)) return; - // We want a higher confidence in the failure detection than usual because failing a repair wrongly has a high cost. - if (phi < 2 * DatabaseDescriptor.getPhiConvictThreshold()) + // We want a higher confidence in the failure detection than usual because failing a repair wrongly has a high cost (CASSANDRA-7063) + if (phi < 100 * DatabaseDescriptor.getPhiConvictThreshold()) return; // Though unlikely, it is possible to arrive here multiple time and we diff --git a/src/java/org/apache/cassandra/streaming/StreamSession.java b/src/java/org/apache/cassandra/streaming/StreamSession.java index 79ad4870b6..55e30f0fa4 100644 --- a/src/java/org/apache/cassandra/streaming/StreamSession.java +++ b/src/java/org/apache/cassandra/streaming/StreamSession.java @@ -616,8 +616,8 @@ public class StreamSession implements IEndpointStateChangeSubscriber, IFailureDe if (!endpoint.equals(peer)) return; - // We want a higher confidence in the failure detection than usual because failing a streaming wrongly has a high cost. - if (phi < 2 * DatabaseDescriptor.getPhiConvictThreshold()) + // We want a higher confidence in the failure detection than usual because failing a streaming wrongly has a high cost (CASSANDRA-7063) + if (phi < 100 * DatabaseDescriptor.getPhiConvictThreshold()) return; closeSession(State.FAILED);