From bb81b9fde5cea55f226cdba4c98cbc00833f4dea Mon Sep 17 00:00:00 2001 From: Nick Dimiduk Date: Mon, 27 Oct 2014 16:47:52 -0700 Subject: [PATCH] HBASE-12356 Rpc with region replica does not propagate tracing spans --- .../hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java index 16c1ac07293..85704ffb5d7 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java @@ -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; }