abhishekrb19 commented on code in PR #16127:
URL: https://github.com/apache/druid/pull/16127#discussion_r1526680038


##########
server/src/test/java/org/apache/druid/server/http/DataSourcesResourceTest.java:
##########
@@ -830,7 +820,8 @@ public void 
testMarkAsUsedNonOvershadowedSegmentsNoDataSource()
         "datasource1",
         new 
DataSourcesResource.MarkDataSourceSegmentsPayload(Intervals.of("2010-01-22/P1D"),
 null)
     );
-    Assert.assertEquals(204, response.getStatus());
+    Assert.assertEquals(200, response.getStatus());
+    Assert.assertEquals(ImmutableMap.of("numChangedSegments", 0), 
response.getEntity());
     EasyMock.verify(segmentsMetadataManager);
   }
 

Review Comment:
   Is there a similar test for `markAsUnused` API where there are no used 
segments or only used segments in the deep storage, and the operation still 
proceeds now that we have removed the short circuit? If not, I can add a test 
in this patch https://github.com/apache/druid/pull/16136



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