cecemei commented on code in PR #17774:
URL: https://github.com/apache/druid/pull/17774#discussion_r2017563376


##########
server/src/test/java/org/apache/druid/server/coordination/ServerManagerTest.java:
##########
@@ -464,7 +430,49 @@ public void testMultipleDrops() throws Exception
   }
 
   @Test
-  public void 
testGetQueryRunnerForIntervalsWhenTimelineIsMissingReturningNoopQueryRunner()
+  public void testReferenceCounting_restrictedSegment() throws Exception
+  {
+    factory = new MyQueryRunnerFactory(new CountDownLatch(1), new 
CountDownLatch(1), new CountDownLatch(2));
+    conglomerate = 
DefaultQueryRunnerFactoryConglomerate.buildFromQueryRunnerFactories(ImmutableMap.of(
+        SearchQuery.class,
+        factory
+    ));
+    serverManager = 
Guice.createInjector(BoundFieldModule.of(this)).getInstance(ServerManager.class);

Review Comment:
   yea the notifyLatch in factory was changed to 2, so we can get the expected 
result for `factory.getSegmentReferences().get(0).getNumReferences())`



-- 
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