HDFS-14616. Add the warn log when the volume available space isn't enough. Contributed by liying.

This commit is contained in:
Ayush Saxena 2019-08-08 00:49:58 +05:30
parent de64253892
commit 11f750e6a7
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ public class RoundRobinVolumeChoosingPolicy<V extends FsVolumeSpi>
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);
}
}
}