HDFS-13863. FsDatasetImpl should log DiskOutOfSpaceException. Contributed by Fei Hui.

(cherry picked from commit 582cb10ec74ed5666946a3769002ceb80ba660cb)
This commit is contained in:
Yiqun Lin 2018-08-30 11:21:13 +08:00
parent fbaa11ef4c
commit 6a547856ef

View File

@ -1347,6 +1347,9 @@ public ReplicaHandler createRbw(
datanode.getMetrics().incrRamDiskBlocksWrite();
} catch (DiskOutOfSpaceException de) {
// Ignore the exception since we just fall back to persistent storage.
LOG.warn("Insufficient space for placing the block on a transient "
+ "volume, fall back to persistent storage: "
+ de.getMessage());
} finally {
if (ref == null) {
cacheManager.release(b.getNumBytes());