vrajat commented on code in PR #14451: URL: https://github.com/apache/pinot/pull/14451#discussion_r1855827237
########## pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentRestletResource.java: ########## @@ -891,6 +892,31 @@ public String getTableReloadMetadata( } } + @GET + @Path("segments/{tableNameWithType}/needRefresh") + @Authorize(targetType = TargetType.TABLE, paramName = "tableNameWithType", action = Actions.Table.GET_METADATA) + @Produces(MediaType.APPLICATION_JSON) + @ApiOperation(value = "Gets a list of segments that need to be refreshed from servers hosting the table", notes = + "Gets a list of segments that need to be refreshed from servers hosting the table") + public Map<String, List<NeedRefreshResponse>> getTableRefreshMetadata( Review Comment: The message is a map of `server`->`list of responses`. Errors will be at the server level. So the map will have a null when there is an error. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org