From 0a30289d2952426a990c38170ab7378aa883048e Mon Sep 17 00:00:00 2001 From: Nick Dimiduk Date: Mon, 14 Mar 2022 14:49:18 +0100 Subject: [PATCH] HBASE-26531 Trace coprocessor exec endpoints (addendum) Stuck by this again. branch-2 needs this configuration instance to be initialized as an HBaseConfiguration. --- .../hbase/coprocessor/TestCoprocessorEndpointTracing.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-endpoint/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpointTracing.java b/hbase-endpoint/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpointTracing.java index 80959b85079e..aba63e8f75eb 100644 --- a/hbase-endpoint/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpointTracing.java +++ b/hbase-endpoint/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorEndpointTracing.java @@ -48,6 +48,7 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.ConnectionRule; import org.apache.hadoop.hbase.HBaseClassTestRule; +import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.HBaseTestingUtility; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.MatcherPredicate; @@ -106,7 +107,7 @@ public class TestCoprocessorEndpointTracing { private static final OpenTelemetryClassRule otelClassRule = OpenTelemetryClassRule.create(); private static final MiniClusterRule miniclusterRule = MiniClusterRule.newBuilder() .setConfiguration(() -> { - final Configuration conf = new Configuration(); + final Configuration conf = HBaseConfiguration.create(); conf.setInt(HConstants.HBASE_CLIENT_OPERATION_TIMEOUT, 5000); conf.setStrings(CoprocessorHost.REGION_COPROCESSOR_CONF_KEY, ProtobufCoprocessorService.class.getName());