From 0ea0f20da7947c99d61272397a69a494a85b4b9e 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 --- .../apache/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 16c1ac0..85704ff 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; } -- 1.9.3 (Apple Git-50)