HDFS-16312. Fix typo for DataNodeVolumeMetrics and ProfilingFileIoEvents (#3637)
Reviewed-by: Hui Fei <ferhui@apache.org>
(cherry picked from commit 2a1a11c039
)
This commit is contained in:
parent
0db04fab20
commit
808da62cfa
|
@ -80,7 +80,7 @@ class ProfilingFileIoEvents {
|
||||||
if (isEnabled) {
|
if (isEnabled) {
|
||||||
DataNodeVolumeMetrics metrics = getVolumeMetrics(volume);
|
DataNodeVolumeMetrics metrics = getVolumeMetrics(volume);
|
||||||
if (metrics != null) {
|
if (metrics != null) {
|
||||||
metrics.addMetadastaOperationLatency(Time.monotonicNow() - begin);
|
metrics.addMetadataOperationLatency(Time.monotonicNow() - begin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,7 +197,7 @@ public class DataNodeVolumeMetrics {
|
||||||
int interval = intervals[i];
|
int interval = intervals[i];
|
||||||
metadataOperationLatencyQuantiles[i] = registry.newQuantiles(
|
metadataOperationLatencyQuantiles[i] = registry.newQuantiles(
|
||||||
"metadataOperationLatency" + interval + "s",
|
"metadataOperationLatency" + interval + "s",
|
||||||
"Meatadata Operation Latency in ms", "ops", "latency", interval);
|
"Metadata Operation Latency in ms", "ops", "latency", interval);
|
||||||
dataFileIoLatencyQuantiles[i] = registry.newQuantiles(
|
dataFileIoLatencyQuantiles[i] = registry.newQuantiles(
|
||||||
"dataFileIoLatency" + interval + "s",
|
"dataFileIoLatency" + interval + "s",
|
||||||
"Data File Io Latency in ms", "ops", "latency", interval);
|
"Data File Io Latency in ms", "ops", "latency", interval);
|
||||||
|
@ -238,7 +238,7 @@ public class DataNodeVolumeMetrics {
|
||||||
ms.unregisterSource(name);
|
ms.unregisterSource(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addMetadastaOperationLatency(final long latency) {
|
public void addMetadataOperationLatency(final long latency) {
|
||||||
totalMetadataOperations.incr();
|
totalMetadataOperations.incr();
|
||||||
metadataOperationRate.add(latency);
|
metadataOperationRate.add(latency);
|
||||||
for (MutableQuantiles q : metadataOperationLatencyQuantiles) {
|
for (MutableQuantiles q : metadataOperationLatencyQuantiles) {
|
||||||
|
|
Loading…
Reference in New Issue