You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by dl...@apache.org on 2021/10/29 19:45:12 UTC

[accumulo] branch main updated: Dont log FateMetrics unknown state, it is not unhandled

This is an automated email from the ASF dual-hosted git repository.

dlmarion pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new bf7d90f  Dont log FateMetrics unknown state, it is not unhandled
bf7d90f is described below

commit bf7d90fbf3e362bdb99ee3c2350f84f4f7576a4e
Author: Dave Marion <dl...@apache.org>
AuthorDate: Fri Oct 29 15:45:04 2021 -0400

    Dont log FateMetrics unknown state, it is not unhandled
---
 .../java/org/apache/accumulo/manager/metrics/fate/FateMetrics.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/manager/src/main/java/org/apache/accumulo/manager/metrics/fate/FateMetrics.java b/server/manager/src/main/java/org/apache/accumulo/manager/metrics/fate/FateMetrics.java
index dcd5eea4..d87156c 100644
--- a/server/manager/src/main/java/org/apache/accumulo/manager/metrics/fate/FateMetrics.java
+++ b/server/manager/src/main/java/org/apache/accumulo/manager/metrics/fate/FateMetrics.java
@@ -108,9 +108,10 @@ public class FateMetrics implements MetricsProducer {
           successfulTxGauge.set(vals.getValue());
           break;
         case UNKNOWN:
+          unknownTxGauge.set(vals.getValue());
+          break;
         default:
           log.warn("Unhandled status type: {}", vals.getKey());
-          unknownTxGauge.set(vals.getValue());
       }
     }