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));
}
}
}
Aggregations