manakbisht commented on code in PR #20291:
URL: https://github.com/apache/pinot/pull/20291#discussion_r4666001021
##########
pinot-controller/src/main/java/org/apache/pinot/controller/util/TableMetadataReader.java:
##########
@@ -128,11 +133,29 @@ private TableReloadJsonResponse
processSegmentMetadataReloadResponse(
/// This api takes in list of segments for which we need the metadata.
/// This calls the server to get the metadata for all segments instead of
making a call per segment.
+ /// Fetches at most the default
`controller.segment.metadata.max.entry.limit` entries.
public JsonNode getSegmentsMetadata(String tableNameWithType, @Nullable
List<String> columns,
@Nullable List<String> segments, int timeoutMs)
throws InvalidConfigException, IOException {
+ return getSegmentsMetadata(tableNameWithType, columns, segments, timeoutMs,
+ ControllerConf.DEFAULT_SEGMENT_METADATA_MAX_ENTRY_LIMIT);
Review Comment:
Good catch, thanks. The four-argument overload now delegates to the
explicit-budget overload with `Integer.MAX_VALUE`, so it no longer enforces a
limit and behaves as it did before this PR. The limit applies only to the REST
endpoint, which passes its configured budget explicitly. Delegating rather than
keeping a separate copy of the fetch logic also avoids duplicating code between
the two overloads.
--
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]