Closed DomGarguilo closed 1 month ago
Something that I noticed while working on these changes was the following: https://github.com/apache/accumulo/blob/88bd23ea5afd424242e95ff3963f0d898368bd5e/server/manager/src/main/java/org/apache/accumulo/manager/metrics/fate/FateMetrics.java#L114-L115 I haven't looked into things too much but it seems like this code would create a new micrometer Gauge each time it is called (which ends up being once every second).
Something that I noticed while working on these changes was the following:
I haven't looked into things too much but it seems like this code would create a new micrometer Gauge each time it is called (which ends up being once every second).
Made a ticket to track this potential issue.
In this PR
txStateCounters
inFateMetricValues
to use an EnumMap as well.FateMetrics
is the only spot where this map is retrieved so we simplify converting to/from Strings there too.