Class SlowDiskTracker
java.lang.Object
org.apache.hadoop.hdfs.server.blockmanagement.SlowDiskTracker
This class aggregates information from
SlowDiskReports received via
heartbeats.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis structure is a thin wrapper over disk latencies. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSlowDiskTracker(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.util.Timer timer) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSlowDiskReport(String dataNodeID, org.apache.hadoop.hdfs.server.protocol.SlowDiskReports dnSlowDiskReport) voidstatic StringgetSlowDiskIDForReport(String datanodeID, String slowDisk) Retrieve all valid reports as a JSON string.voidupdateSlowDiskReportAsync(long now)
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
SlowDiskTracker
public SlowDiskTracker(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.util.Timer timer)
-
-
Method Details
-
getSlowDiskIDForReport
-
addSlowDiskReport
public void addSlowDiskReport(String dataNodeID, org.apache.hadoop.hdfs.server.protocol.SlowDiskReports dnSlowDiskReport) -
checkAndUpdateReportIfNecessary
public void checkAndUpdateReportIfNecessary() -
updateSlowDiskReportAsync
@VisibleForTesting public void updateSlowDiskReportAsync(long now) -
getSlowDiskReportAsJsonString
Retrieve all valid reports as a JSON string.- Returns:
- serialized representation of valid reports. null if serialization failed.
-