Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let the controller getTableInstance() call to return the list of live brokers of a table. #7556

Merged
merged 11 commits into from
Oct 29, 2021
Prev Previous commit
Next Next commit
Fix lint errors.
  • Loading branch information
chenboat committed Oct 11, 2021
commit 79a96cf1d1cbd0e13d2078aa8b868bd065cb5ed6
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ private Map<String, List<String>> getTableToBrokersMapFromExternalView(boolean t
while (resourceEntries.hasNext()) {
Entry<String, JsonNode> resourceEntry = resourceEntries.next();
String resourceName = resourceEntry.getKey();
String tableName = tableWithType ? resourceName: resourceName.replace(OFFLINE_SUFFIX, "").replace(REALTIME_SUFFIX, "");
String tableName =
tableWithType ? resourceName : resourceName.replace(OFFLINE_SUFFIX, "").replace(REALTIME_SUFFIX, "");
Set<String> brokerUrls = brokerUrlsMap.computeIfAbsent(tableName, k -> new HashSet<>());
JsonNode resource = resourceEntry.getValue();
Iterator<Entry<String, JsonNode>> brokerEntries = resource.fields();
Expand Down