9aman commented on code in PR #15048:
URL: https://github.com/apache/pinot/pull/15048#discussion_r1955509397


##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/SegmentDeletionManager.java:
##########
@@ -282,6 +287,42 @@ protected void removeSegmentFromStore(String 
tableNameWithType, String segmentId
     }
   }
 
+  /**
+   * Gets URI for segment deletion by attempting to locate the segment file in 
the following order:
+   * 1. Plain segment file (without extension)
+   * 2. Compressed segment file (with .tar.gz extension)
+   *
+   * @param rawTableName The name of the table
+   * @param segmentId The ID of the segment to delete
+   * @return URI of the existing segment file, or null if neither variant 
exists or in case of filesystem errors
+   */
+  private URI getFileToDeleteURI(String rawTableName, String segmentId) {

Review Comment:
   Done



-- 
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-unsubscr...@pinot.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to