You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "zachjsh (via GitHub)" <gi...@apache.org> on 2024/03/01 20:37:43 UTC

Re: [PR] Kill segments by version (druid)

zachjsh commented on code in PR #15994:
URL: https://github.com/apache/druid/pull/15994#discussion_r1509508297


##########
indexing-service/src/main/java/org/apache/druid/indexing/common/task/KillUnusedSegmentsTask.java:
##########
@@ -131,8 +137,12 @@ public KillUnusedSegmentsTask(
     if (limit != null && Boolean.TRUE.equals(markAsUnused)) {
       throw InvalidInput.exception("limit[%d] cannot be provided when markAsUnused is enabled.", limit);
     }
+    if (version != null && Boolean.TRUE.equals(markAsUnused)) {
+      throw InvalidInput.exception("version[%s] cannot be provided when markAsUnused is enabled.", version);

Review Comment:
   think this is ok 👌 



##########
indexing-service/src/main/java/org/apache/druid/indexing/common/task/KillUnusedSegmentsTask.java:
##########
@@ -131,8 +137,12 @@ public KillUnusedSegmentsTask(
     if (limit != null && Boolean.TRUE.equals(markAsUnused)) {
       throw InvalidInput.exception("limit[%d] cannot be provided when markAsUnused is enabled.", limit);
     }
+    if (version != null && Boolean.TRUE.equals(markAsUnused)) {
+      throw InvalidInput.exception("version[%s] cannot be provided when markAsUnused is enabled.", version);

Review Comment:
   I think this is ok 👌 



-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org