deepthi912 commented on code in PR #13915:
URL: https://github.com/apache/pinot/pull/13915#discussion_r1742773173
##########
pinot-controller/src/main/java/org/apache/pinot/controller/util/TableMetadataReader.java:
##########
@@ -60,21 +60,28 @@ public TableMetadataReader(Executor executor,
HttpClientConnectionManager connec
public Map<String, JsonNode> getServerCheckSegmentsReloadMetadata(String
tableNameWithType, int timeoutMs)
throws InvalidConfigException, IOException {
+ List<String> segmentsMetadata = getIsReloadNeeded(tableNameWithType,
timeoutMs);
+ Map<String, JsonNode> response = new HashMap<>();
+ for (String segmentMetadata : segmentsMetadata) {
+ JsonNode responseJson = JsonUtils.stringToJsonNode(segmentMetadata);
+ response.put(responseJson.get("instanceId").asText(), responseJson);
+ }
+ return response;
+ }
+
+ private List<String> getIsReloadNeeded(String tableNameWithType, int
timeoutMs)
Review Comment:
Do you want to add a new method boolean isReloadNeeded()?
Re: I am thinking to extract boolean in the integration with the server
responses.
--
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]