HDFS-15668. RBF: Fix RouterRPCMetrics annocation and document misplaced error. Contributed by Hongbing Wang.

This commit is contained in:
Hui Fei 2020-11-10 13:07:22 +08:00
parent 95c96605b3
commit f1d5652359
2 changed files with 4 additions and 4 deletions

View File

@ -548,8 +548,8 @@ RouterRPCMetrics shows the statistics of the Router component in Router-based fe
|:---- |:---- | |:---- |:---- |
| `ProcessingOp` | Number of operations the Router processed internally | | `ProcessingOp` | Number of operations the Router processed internally |
| `ProxyOp` | Number of operations the Router proxied to a Namenode | | `ProxyOp` | Number of operations the Router proxied to a Namenode |
| `ProxyOpFailureStandby` | Number of operations to fail to reach NN | | `ProxyOpFailureStandby` | Number of operations to hit a standby NN |
| `ProxyOpFailureCommunicate` | Number of operations to hit a standby NN | | `ProxyOpFailureCommunicate` | Number of operations to fail to reach NN |
| `ProxyOpNotImplemented` | Number of operations not implemented | | `ProxyOpNotImplemented` | Number of operations not implemented |
| `RouterFailureStateStore` | Number of failed requests due to State Store unavailable | | `RouterFailureStateStore` | Number of failed requests due to State Store unavailable |
| `RouterFailureReadOnly` | Number of failed requests due to read only mount point | | `RouterFailureReadOnly` | Number of failed requests due to read only mount point |

View File

@ -50,9 +50,9 @@ public class FederationRPCMetrics implements FederationRPCMBean {
@Metric("Number of operations the Router proxied to a Namenode") @Metric("Number of operations the Router proxied to a Namenode")
private MutableCounterLong proxyOp; private MutableCounterLong proxyOp;
@Metric("Number of operations to fail to reach NN")
private MutableCounterLong proxyOpFailureStandby;
@Metric("Number of operations to hit a standby NN") @Metric("Number of operations to hit a standby NN")
private MutableCounterLong proxyOpFailureStandby;
@Metric("Number of operations to fail to reach NN")
private MutableCounterLong proxyOpFailureCommunicate; private MutableCounterLong proxyOpFailureCommunicate;
@Metric("Number of operations to hit a client overloaded Router") @Metric("Number of operations to hit a client overloaded Router")
private MutableCounterLong proxyOpFailureClientOverloaded; private MutableCounterLong proxyOpFailureClientOverloaded;