HDFS-13863. FsDatasetImpl should log DiskOutOfSpaceException. Contributed by Fei Hui.
This commit is contained in:
parent
d53a10b0a5
commit
582cb10ec7
|
@ -1397,6 +1397,9 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
|
||||||
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());
|
||||||
|
|
Loading…
Reference in New Issue