This is an automated email from the ASF dual-hosted git repository.

cwylie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new d0654e2174 Register emitter (#14180)
d0654e2174 is described below

commit d0654e217480b5e28e793bf1dbd609cae9e5bac9
Author: George Shiqi Wu <[email protected]>
AuthorDate: Thu Apr 27 21:32:50 2023 -0400

    Register emitter (#14180)
---
 .../org/apache/druid/client/HttpServerInventoryViewTest.java   | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/server/src/test/java/org/apache/druid/client/HttpServerInventoryViewTest.java 
b/server/src/test/java/org/apache/druid/client/HttpServerInventoryViewTest.java
index 54f12c8081..f69f0a8422 100644
--- 
a/server/src/test/java/org/apache/druid/client/HttpServerInventoryViewTest.java
+++ 
b/server/src/test/java/org/apache/druid/client/HttpServerInventoryViewTest.java
@@ -34,6 +34,7 @@ import org.apache.druid.discovery.NodeRole;
 import org.apache.druid.java.util.common.Intervals;
 import org.apache.druid.java.util.common.RE;
 import org.apache.druid.java.util.common.concurrent.Execs;
+import org.apache.druid.java.util.emitter.EmittingLogger;
 import org.apache.druid.java.util.http.client.HttpClient;
 import org.apache.druid.java.util.http.client.Request;
 import org.apache.druid.java.util.http.client.response.HttpResponseHandler;
@@ -45,6 +46,7 @@ import 
org.apache.druid.server.coordination.DruidServerMetadata;
 import org.apache.druid.server.coordination.SegmentChangeRequestDrop;
 import org.apache.druid.server.coordination.SegmentChangeRequestLoad;
 import org.apache.druid.server.coordination.ServerType;
+import org.apache.druid.server.metrics.NoopServiceEmitter;
 import org.apache.druid.timeline.DataSegment;
 import org.apache.druid.timeline.SegmentId;
 import org.easymock.EasyMock;
@@ -55,6 +57,7 @@ import org.jboss.netty.handler.codec.http.HttpResponseStatus;
 import org.jboss.netty.handler.codec.http.HttpVersion;
 import org.joda.time.Duration;
 import org.junit.Assert;
+import org.junit.BeforeClass;
 import org.junit.Test;
 
 import java.io.ByteArrayInputStream;
@@ -72,6 +75,13 @@ import java.util.concurrent.atomic.AtomicInteger;
  */
 public class HttpServerInventoryViewTest
 {
+
+  @BeforeClass
+  public static void setup()
+  {
+    EmittingLogger.registerEmitter(new NoopServiceEmitter());
+  }
+
   @Test(timeout = 60_000L)
   public void testSimple() throws Exception
   {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to