You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "9aman (via GitHub)" <gi...@apache.org> on 2025/02/14 03:21:19 UTC

Re: [PR] Ensure SegmentDeletionManager deletes deepstore files created by BaseMultipleSegmentsConversionExecutor [pinot]

9aman commented on PR #15048:
URL: https://github.com/apache/pinot/pull/15048#issuecomment-2658176403

   > > ## Concern
   > > The `BaseMultipleSegmentsConversionExecutor` pushes segments on the path:
   > > ```
   > >  File convertedSegmentTarFile = new File(convertedTarredSegmentDir,
   > >             segmentConversionResult.getSegmentName() + TarCompressionUtils.TAR_GZ_FILE_EXTENSION);
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > This contains the extension `.tar.gz`
   > > While the deletion manager uses the following path for deleting the old segment
   > > `URIUtils.getUri(_dataDir, rawTableName, URIUtils.encode(segmentId));` that lacks the extension.
   > > ## Solution
   > > 
   > > * Use the existing naming convention and verify if the files exists or not.
   > > * Use the file name with `.tar.gz` extension if the file without extension does not exists.
   > > 
   > > ## Further Improvements
   > > 
   > > * Fix the code in minion by removing the extension from the file path to which the segment is written to.
   > 
   > Please update the title of this PR
   
   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-unsubscribe@pinot.apache.org

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


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