Skip to content

Commit 438bd3e

Browse files
authored
Update NameNodeResourceChecker.java
1 parent ae44e2d commit 438bd3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeResourceChecker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ private void addDirToCheck(URI directoryToCheck, boolean required)
174174
* otherwise.
175175
*/
176176
public boolean hasAvailableDiskSpace() {
177-
try{
177+
try {
178178
if (minimumRedundantVolumes > volumes.size()){
179179
throw new IllegalArgumentException(DFSConfigKeys.DFS_NAMENODE_CHECKED_VOLUMES_MINIMUM_KEY +
180180
" is " + minimumRedundantVolumes +
181181
" which is greater than the total number of existing storage volumes " + volumes.size());
182182
}
183-
}catch(IllegalArgumentException e){
183+
} catch (IllegalArgumentException e){
184184
LOG.warn(DFSConfigKeys.DFS_NAMENODE_CHECKED_VOLUMES_MINIMUM_KEY +
185185
" is greater than the total number of existing storage volumes" +
186186
" and will result in adding resources and still not being able to turn off safe mode.", e);

0 commit comments

Comments
 (0)