New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDFS-16039. RBF: Some indicators of RBFMetrics count inaccurately #3086
base: trunk
Are you sure you want to change the base?
Conversation
💔 -1 overall
This message was automatically generated. |
...doop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java
Outdated
Show resolved
Hide resolved
...doop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java
Outdated
Show resolved
Hide resolved
...doop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java
Outdated
Show resolved
Hide resolved
...-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/NamenodeBeanMetrics.java
Outdated
Show resolved
Hide resolved
...doop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java
Outdated
Show resolved
Hide resolved
...doop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java
Outdated
Show resolved
Hide resolved
...doop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
...doop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java
Outdated
Show resolved
Hide resolved
...-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/metrics/TestRBFMetrics.java
Show resolved
Hide resolved
@@ -1757,7 +1757,7 @@ public void testRBFMetricsMethodsRelayOnStateStore() { | |||
// These methods relays on | |||
// {@link RBFMetrics#getActiveNamenodeRegistration()} | |||
assertEquals("{}", metrics.getNameservices()); | |||
assertEquals(0, metrics.getNumLiveNodes()); | |||
assertEquals(NUM_DNS * 2, metrics.getNumLiveNodes()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why now this is like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GetNumLiveNodes used to obtain dn information through StateStore, and now it obtains it through RouterRpcServer#getCachedDatanodeReport. Now this test is not applicable in StateStore, I deleted it.
💔 -1 overall
This message was automatically generated. |
Solve the inaccurate statistics of metrics for getNumLiveNodes, getNumDeadNodes, getNumDecommissioningNodes, getNumDecomLiveNodes, getNumDecomDeadNodes, getNumInMaintenanceLiveDataNodes, getNumInMaintenanceDeadDataNodes, getNumEnteringMaintenanceDataNodes