hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject [31/49] hadoop git commit: HADOOP-15110. Gauges are getting logged in exceptions from AutoRenewalThreadForUserCreds.
Date Tue, 13 Nov 2018 07:50:58 GMT
HADOOP-15110. Gauges are getting logged in exceptions from AutoRenewalThreadForUserCreds.

Contributed by LiXin Ge.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/3c9d97b8
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/3c9d97b8
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/3c9d97b8

Branch: refs/heads/HDFS-13891
Commit: 3c9d97b8f7d6eb75f08fc6d37cee37c22760bb86
Parents: c741109
Author: Steve Loughran <stevel@apache.org>
Authored: Mon Nov 12 12:58:05 2018 +0000
Committer: Steve Loughran <stevel@apache.org>
Committed: Mon Nov 12 12:58:05 2018 +0000

----------------------------------------------------------------------
 .../org/apache/hadoop/metrics2/lib/MutableGaugeFloat.java     | 7 +++++++
 .../java/org/apache/hadoop/metrics2/lib/MutableGaugeInt.java  | 7 +++++++
 .../java/org/apache/hadoop/metrics2/lib/MutableGaugeLong.java | 6 ++++++
 3 files changed, 20 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/3c9d97b8/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeFloat.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeFloat.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeFloat.java
index b16eda2..6a52bf3 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeFloat.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeFloat.java
@@ -77,4 +77,11 @@ public class MutableGaugeFloat extends MutableGauge {
       }
     }
   }
+
+  /**
+   * @return  the value of the metric
+   */
+  public String toString() {
+    return value.toString();
+  }
 }

http://git-wip-us.apache.org/repos/asf/hadoop/blob/3c9d97b8/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeInt.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeInt.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeInt.java
index cce4528..8983900 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeInt.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeInt.java
@@ -87,4 +87,11 @@ public class MutableGaugeInt extends MutableGauge {
       clearChanged();
     }
   }
+
+  /**
+   * @return  the value of the metric
+   */
+  public String toString() {
+    return value.toString();
+  }
 }

http://git-wip-us.apache.org/repos/asf/hadoop/blob/3c9d97b8/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeLong.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeLong.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeLong.java
index a2a8632..a452518 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeLong.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeLong.java
@@ -88,4 +88,10 @@ public class MutableGaugeLong extends MutableGauge {
     }
   }
 
+  /**
+   * @return  the value of the metric
+   */
+  public String toString() {
+    return value.toString();
+  }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message