manakbisht commented on code in PR #20291:
URL: https://github.com/apache/pinot/pull/20291#discussion_r4612284721
##########
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:
Went with your suggestion. `maxSegmentColumns` is now a query param (default
50K), so callers can raise it per request without a restart. To keep the OOM
protection, it's capped by a single controller config,
`controller.segment.metadata.maxSegmentColumns.limit` (default 100K). A value
above the cap is rejected with a 400 that names the config. Updated in
d7679c372c, PTAL.
--
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]