HDFS-13863. FsDatasetImpl should log DiskOutOfSpaceException. Contributed by Fei Hui.
(cherry picked from commit 582cb10ec74ed5666946a3769002ceb80ba660cb)
This commit is contained in:
parent
fbaa11ef4c
commit
6a547856ef
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user