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

This commit is contained in:
Yiqun Lin 2018-08-30 11:21:13 +08:00
parent d53a10b0a5
commit 582cb10ec7

View File

@ -1397,6 +1397,9 @@ public ReplicaHandler createRbw(
datanode.getMetrics().incrRamDiskBlocksWrite(); datanode.getMetrics().incrRamDiskBlocksWrite();
} catch (DiskOutOfSpaceException de) { } catch (DiskOutOfSpaceException de) {
// Ignore the exception since we just fall back to persistent storage. // 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 { } finally {
if (ref == null) { if (ref == null) {
cacheManager.release(b.getNumBytes()); cacheManager.release(b.getNumBytes());