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 @@ public class RoundRobinVolumeChoosingPolicy<V extends FsVolumeSpi>
|
|||||||
throw new DiskOutOfSpaceException("Out of space: "
|
throw new DiskOutOfSpaceException("Out of space: "
|
||||||
+ "The volume with the most available space (=" + maxAvailable
|
+ "The volume with the most available space (=" + maxAvailable
|
||||||
+ " B) is less than the block size (=" + blockSize + " B).");
|
+ " 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