xiangfu0 commented on code in PR #20458:
URL: https://github.com/apache/pinot/pull/20458#discussion_r4795199723


##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java:
##########
@@ -1362,10 +1365,13 @@ static Map<String, SegmentMetadataInfo> 
createSegmentsMetadataInfoMap(FormDataMu
     tempFiles.add(allSegmentsMetadataDir);
     try {
       FileUtils.forceMkdir(allSegmentsMetadataDir);
-      List<File> metadataFiles = 
TarCompressionUtils.untar(allSegmentsMetadataTarFile, allSegmentsMetadataDir);
+      List<File> metadataFiles = 
TarCompressionUtils.untarWithLimits(allSegmentsMetadataTarFile, 
allSegmentsMetadataDir,

Review Comment:
   The limits cover the batch archive only. The per-segment metadata archives 
inside it, and the single, URI, metadata-push and reingestion paths, still go 
through `DefaultMetadataExtractor`, which calls `TarCompressionUtils.untar` 
(line 41) with no byte or entry cap. Should those use `untarWithLimits` with 
the same settings?



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