Search in sources :

Example 6 with TraceState

use of org.apache.cassandra.tracing.TraceState in project cassandra by apache.

the class ReadCallback method response.

public void response(MessageIn<ReadResponse> message) {
    resolver.preprocess(message);
    int n = waitingFor(message.from) ? recievedUpdater.incrementAndGet(this) : received;
    if (n >= blockfor && resolver.isDataPresent()) {
        condition.signalAll();
        // the original resolve that get() kicks off as soon as the condition is signaled
        if (blockfor < endpoints.size() && n == endpoints.size()) {
            TraceState traceState = Tracing.instance.get();
            if (traceState != null)
                traceState.trace("Initiating read-repair");
            StageManager.getStage(Stage.READ_REPAIR).execute(new AsyncRepairRunner(traceState, queryStartNanoTime));
        }
    }
}
Also used : TraceState(org.apache.cassandra.tracing.TraceState)

Aggregations

TraceState (org.apache.cassandra.tracing.TraceState)6 ClientWarn (org.apache.cassandra.service.ClientWarn)2 IOException (java.io.IOException)1 InetAddress (java.net.InetAddress)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1 LocalAwareExecutorService (org.apache.cassandra.concurrent.LocalAwareExecutorService)1 ColumnFamilyStore (org.apache.cassandra.db.ColumnFamilyStore)1 Range (org.apache.cassandra.dht.Range)1 Token (org.apache.cassandra.dht.Token)1 Tracing (org.apache.cassandra.tracing.Tracing)1 Pair (org.apache.cassandra.utils.Pair)1 ProgressEvent (org.apache.cassandra.utils.progress.ProgressEvent)1 ProgressListener (org.apache.cassandra.utils.progress.ProgressListener)1