gortiz commented on PR #20424: URL: https://github.com/apache/pinot/pull/20424#issuecomment-7416915002
A few small comments: 1. `PinotSegmentUploadDownloadRestletResource.java:149-151`: depth 32, name length 4096 and path work 64Mi are hard-coded. If a real segment layout ever needs more, every upload for that table fails and only a patch release can fix it. Could we read them from `ControllerConf` (as #20458 does) and keep the current values as defaults? 2. A test that builds an archive deeper than the limit, goes through the controller `getSegmentMetadata` path, and asserts 413 and that nothing deeper than the limit was created would cover the end-to-end behavior. `testArchivePathBudget` only covers the helper. 3. Nit: `TarCompressionUtils.java:314`, the `ArchivePathBudget` Javadoc says "Not thread-safe", but the real contract is one budget per request, shared across its sequential extractions. Maybe "request-scoped; do not share across requests". -- 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]
