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


##########
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:
   I kept these settings specific to the batch input. The batch reader extracts 
the submitted archive once under both limits. For each segment, 
createSegmentFileFromSegmentMetadataInfo builds a fresh controller-side archive 
containing the two already extracted metadata files. There is no 
caller-supplied nested archive in that step. The shared 
DefaultMetadataExtractor also unpacks complete segments for segment and URI 
uploads. Applying the 256 MiB batch-metadata default there would reject 
legitimate larger segments. Single metadata pushes and reingestion would need 
their own explicitly sized upload policy. If the other archive PR merges first, 
the later change will need a rebase that preserves both checks.



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