xiangfu0 commented on code in PR #20458:
URL: https://github.com/apache/pinot/pull/20458#discussion_r4805775225
##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java:
##########
@@ -1345,10 +1348,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,
+ controllerConf.getBatchSegmentMetadataMaxExpandedBytes(),
controllerConf.getBatchSegmentMetadataMaxEntries());
Review Comment:
These two limits are only checked inside `untarWithLimits`, so a zero or
negative value turns every batch upload into a 500: the
`IllegalArgumentException` isn't one of the cases mapped below. #20424 and
#20427 now validate their settings at controller startup; doing the same for
these two would match.
--
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]