DomGarguilo commented on code in PR #6429:
URL: https://github.com/apache/accumulo/pull/6429#discussion_r3430982495


##########
server/monitor/src/main/java/org/apache/accumulo/monitor/next/views/TableDataFactory.java:
##########
@@ -157,6 +176,44 @@ public static TableData forColumns(final Set<ServerId> 
servers,
 
   }
 
+  public static TableData forServer(final MetricResponse metricResponse) {
+    if (!hasMetricData(metricResponse)) {
+      return new TableData(SERVER_DETAIL_COLUMNS, List.of());
+    }
+
+    List<Map<String,Object>> data = new ArrayList<>();
+    for (var binary : metricResponse.getMetrics()) {
+      var metric = FMetric.getRootAsFMetric(binary);

Review Comment:
   Yea nice find. fixed in 
[0db96bd](https://github.com/apache/accumulo/pull/6429/commits/0db96bdebdbe76b2d90eb916c05749d36fb8fb3a)



-- 
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]

Reply via email to