HDFS-14616. Add the warn log when the volume available space isn't enough. Contributed by liying.
This commit is contained in:
parent
de64253892
commit
11f750e6a7
@ -96,6 +96,10 @@ private V chooseVolume(final int curVolumeIndex, final List<V> volumes,
|
||||
throw new DiskOutOfSpaceException("Out of space: "
|
||||
+ "The volume with the most available space (=" + maxAvailable
|
||||
+ " B) is less than the block size (=" + blockSize + " B).");
|
||||
} else {
|
||||
LOG.warn("The volume[{}] with the available space (={} B) is "
|
||||
+ "less than the block size (={} B).", volume.getBaseURI(),
|
||||
availableVolumeSize, blockSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user