HBASE-12356 Rpc with region replica does not propagate tracing spans

This commit is contained in:
Nick Dimiduk 2014-10-27 16:47:52 -07:00
parent f2f21000fb
commit bb81b9fde5
1 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ import org.apache.hadoop.hbase.protobuf.generated.ClientProtos;
import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;
import com.google.protobuf.ServiceException;
import org.htrace.Trace;
/**
* Caller that goes to replica if the primary region does no answer within a configurable
@ -413,7 +414,7 @@ public class RpcRetryingCallerWithReadReplicas {
public void submit(ReplicaRegionServerCallable task, int callTimeout) {
QueueingFuture newFuture = new QueueingFuture(task, callTimeout);
executor.execute(newFuture);
executor.execute(Trace.wrap(newFuture));
tasks[task.id] = newFuture;
}