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


##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/retention/RetentionManager.java:
##########
@@ -124,8 +138,19 @@ private void manageRetentionForTable(TableConfig 
tableConfig) {
   }
 
   private void manageRetentionForOfflineTable(String offlineTableName, 
RetentionStrategy retentionStrategy) {
+    List<SegmentZKMetadata> segmentZKMetadataList = 
_pinotHelixResourceManager.getSegmentsZKMetadata(offlineTableName);

Review Comment:
   Segment metadata is added to ZK before it's added to IdealState
   Segment metadata is removed from ZK after the segment has been removed from 
the ideal state. 
   
   The segment list from ZK will always be a super set of segments in Ideal 
State. Thus, I have not checked IS for filtering segments that are still in IS.
   



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