org.apache.cassandra.service
Class ConsistencyChecker
java.lang.Object
org.apache.cassandra.service.ConsistencyChecker
- All Implemented Interfaces:
- java.lang.Runnable
public class ConsistencyChecker
- extends java.lang.Object
- implements java.lang.Runnable
ConsistencyChecker does the following:
[ConsistencyChecker.run]
(1) sends DIGEST read requests to each other replica of the given row.
[DigestResponseHandler]
(2) If any of the digests to not match the data read, it sends a second round of requests
to each replica, this time for the full data
[DataRepairHandler]
(3) processes full-read responses and invokes resolve. The actual sending of messages
repairing out-of-date or missing data is handled by ReadResponseResolver.
Field Summary |
protected java.util.List<java.net.InetAddress> |
replicas_
|
Method Summary |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
replicas_
protected final java.util.List<java.net.InetAddress> replicas_
ConsistencyChecker
public ConsistencyChecker(ReadCommand command,
Row row,
java.util.List<java.net.InetAddress> endpoints,
java.net.InetAddress dataSource)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
Copyright © 2011 The Apache Software Foundation