Skip to content

Commit 4751846

Browse files
committed
fix checkstyle
1 parent 94d6660 commit 4751846

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DatanodeUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ public static File idToBlockDir(File root, long blockId) {
133133
* Take an example. We hava a block with blockid mapping to:
134134
* "/data1/hadoop/hdfs/datanode/current/BP-xxxx/current/finalized/subdir0/subdir0"
135135
* We return "subdir0/subdir0"
136-
* @return
136+
* @param blockId blockId
137+
* @return The two-level subdir name
137138
*/
138139
public static String idToBlockDirSuffixName(long blockId) {
139140
int d1 = (int) ((blockId >> 16) & 0x1F);

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestFsDatasetImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
import org.apache.hadoop.hdfs.server.datanode.FinalizedReplica;
6969
import org.apache.hadoop.hdfs.server.datanode.ReplicaHandler;
7070
import org.apache.hadoop.hdfs.server.datanode.ReplicaInfo;
71-
import org.apache.hadoop.hdfs.server.datanode.ReplicaNotFoundException;
7271
import org.apache.hadoop.hdfs.server.datanode.ShortCircuitRegistry;
7372
import org.apache.hadoop.hdfs.server.datanode.StorageLocation;
7473
import org.apache.hadoop.hdfs.server.datanode.fsdataset.DataNodeVolumeMetrics;

0 commit comments

Comments
 (0)