Java Code Examples for org.apache.cassandra.config.DatabaseDescriptor#getPhiConvictThreshold()
The following examples show how to use
org.apache.cassandra.config.DatabaseDescriptor#getPhiConvictThreshold() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RepairSession.java From stratio-cassandra with Apache License 2.0 | 6 votes |
public void convict(InetAddress endpoint, double phi) { 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()) return; // Though unlikely, it is possible to arrive here multiple time and we // want to avoid print an error message twice if (!isFailed.compareAndSet(false, true)) return; failedNode(endpoint); }
Example 2
Source File: FailureDetector.java From stratio-cassandra with Apache License 2.0 | 4 votes |
public double getPhiConvictThreshold() { return DatabaseDescriptor.getPhiConvictThreshold(); }