Skip to content

Commit

Permalink
[Feature][Zeta engine] Added the metrics information of table statist…
Browse files Browse the repository at this point in the history
…ics in multi-table mode apache#6959
  • Loading branch information
hawk9821 committed Jul 15, 2024
1 parent 242cc36 commit f971e89
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ public void testGetMultiTableJobMetrics() {
Assertions.assertTrue(jobMetrics.contains(SINK_WRITE_COUNT + "#fake1"));
Assertions.assertTrue(jobMetrics.contains(SINK_WRITE_COUNT + "#fake2"));

log.info("jobMetrics : {}" , jobMetrics);
log.info("jobMetrics : {}", jobMetrics);
JsonNode jobMetricsStr = new ObjectMapper().readTree(jobMetrics);
List<String> metricNameList =
StreamSupport.stream(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
import java.util.Spliterators;
import java.util.concurrent.ExecutionException;
import java.util.stream.Collectors;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;

import static com.hazelcast.internal.ascii.rest.HttpStatusCode.SC_500;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ public void received(Record<?> record) {
sinkTableCounter.inc();
} else {
Counter counter =
metricsContext.counter(
SINK_WRITE_COUNT + "#" + tableName);
metricsContext.counter(SINK_WRITE_COUNT + "#" + tableName);
counter.inc();
sinkWriteCountPerTable.put(tableName, counter);
}
Expand Down

0 comments on commit f971e89

Please sign in to comment.