Skip to content

Commit

Permalink
fix checkstyle,
Browse files Browse the repository at this point in the history
  • Loading branch information
hfutatzhanghb committed Jan 9, 2025
1 parent 7e9420d commit 3064fc6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,11 @@ public static File idToBlockDir(File root, long blockId) {
}

/**
* Take an example: we hava a block with blockid mapping to:
* Take an example.
* We hava a block with blockid mapping to:
* "/data1/hadoop/hdfs/datanode/current/BP-xxxx/current/finalized/subdir0/subdir0"
* We return "subdir0/subdir0"
* @return
* We return "subdir0/subdir0".
* @return two-level subdir string where block will be stored.
*/
public static String idToBlockDirSuffixName(long blockId) {
int d1 = (int) ((blockId >> 16) & 0x1F);
Expand Down

0 comments on commit 3064fc6

Please sign in to comment.