From 611f729d51b55f2dfc1ed6c3601da54838ba1e72 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 4c5814e..8f01250 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 @@ -37,6 +37,7 @@ import org.apache.hadoop.hbase.protobuf.ProtobufUtil; import org.apache.hadoop.hbase.protobuf.RequestConverter; import org.apache.hadoop.hbase.protobuf.generated.ClientProtos; import org.apache.hadoop.hbase.util.EnvironmentEdgeManager; +import org.htrace.Trace; import java.io.IOException; import java.io.InterruptedIOException; @@ -412,7 +413,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)