github-code-scanning[bot] commented on code in PR #13731:
URL: https://github.com/apache/druid/pull/13731#discussion_r1097319799


##########
server/src/test/java/org/apache/druid/client/HttpServerInventoryViewTest.java:
##########
@@ -273,6 +273,52 @@
     httpServerInventoryView.stop();
   }
 
+  @Test
+  public void testSyncMonitoring()
+  {
+    ObjectMapper jsonMapper = TestHelper.makeJsonMapper();
+
+    TestDruidNodeDiscovery druidNodeDiscovery = new TestDruidNodeDiscovery();
+    DruidNodeDiscoveryProvider druidNodeDiscoveryProvider = 
EasyMock.createMock(DruidNodeDiscoveryProvider.class);
+    
EasyMock.expect(druidNodeDiscoveryProvider.getForService(DataNodeService.DISCOVERY_SERVICE_KEY))
+            .andReturn(druidNodeDiscovery);
+    EasyMock.replay(druidNodeDiscoveryProvider);
+
+    TestHttpClient httpClient = new TestHttpClient(ImmutableList.of());
+    DiscoveryDruidNode druidNode = new DiscoveryDruidNode(
+        new DruidNode("service", "host", false, 8080, null, true, false),
+        NodeRole.HISTORICAL,
+        ImmutableMap.of(
+            DataNodeService.DISCOVERY_SERVICE_KEY, new DataNodeService("tier", 
1000, ServerType.HISTORICAL, 0)
+        )
+    );

Review Comment:
   ## Unread local variable
   
   Variable 'DiscoveryDruidNode druidNode' is never read.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/4234)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to