Hexiaoqiao commented on a change in pull request #1104: HDFS-14318:dn cannot be
recognized and must be restarted to recognize the Repaired disk
URL: https://github.com/apache/hadoop/pull/1104#discussion_r303928682
##########
File path:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java
##########
@@ -404,6 +404,11 @@ public static InetSocketAddress createSocketAddr(String
target) {
private final StorageLocationChecker storageLocationChecker;
private final DatasetVolumeChecker volumeChecker;
+ volatile FsDatasetSpi<? extends FsVolumeSpi> allData = null;
+ private Thread checkDiskThread = null;
+ private final int checkDiskInterval = 5*1000;
+ private Object checkDiskMutex = new Object();
+ private List<StorageLocation> errorDisk = null;
Review comment:
`allData = data + errorDisk` right? It seems that `allData` is redundant
variable.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]