manakbisht commented on code in PR #20291:
URL: https://github.com/apache/pinot/pull/20291#discussion_r4602708396
##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentRestletResource.java:
##########
@@ -922,7 +923,8 @@ private JsonNode getSegmentsMetadataFromServer(String
tableNameWithType, List<St
TableMetadataReader tableMetadataReader =
new TableMetadataReader(_executor, _connectionManager,
_pinotHelixResourceManager);
return tableMetadataReader.getSegmentsMetadata(tableNameWithType, columns,
segments,
- _controllerConf.getServerAdminRequestTimeoutSeconds() * 1000);
+ _controllerConf.getServerAdminRequestTimeoutSeconds() * 1000,
+ _controllerConf.getSegmentMetadataMaxSegmentColumns());
Review Comment:
One concern I have with a query param is that the limit is there to protect
the controller and servers from OOM. If callers can raise it, a single request
could still cause the OOM we're trying to prevent. Keeping it
operator-controlled seems a bit safer to me. With a hard cap of 5x-10x, the cap
would effectively become the limit for anyone who passes the param. So maybe we
could just raise the default config value to something in that range?
--
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]