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


##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/IndexerMetadataStorageAdapter.java:
##########
@@ -58,11 +59,15 @@ public int deletePendingSegments(String dataSource, 
Interval deleteInterval)
         DateTimes.MAX
     );
 
-    Preconditions.checkArgument(
-        !deleteInterval.overlaps(activeTaskInterval),
-        "Cannot delete pendingSegments because there is at least one active 
task created at %s",
-        activeTaskInterval.getStart()
-    );
+    if (deleteInterval.overlaps(activeTaskInterval)) {

Review Comment:
   Yep, good point. I've included the earliest created task id in the exception 
message.



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