[
https://issues.apache.org/jira/browse/HADOOP-15493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16502139#comment-16502139
]
Arpit Agarwal commented on HADOOP-15493:
----------------------------------------
Yeah checking for the messages is terribly ugly. However I don't know any other
filesystem agnostic way of checking for disk full situation. Threshold-based
checks are inaccurate:
# Space may be freed up between the failure and running {{getUsableSpace}}.
# Filesystems may not report zero free space when the disk is full (especially
xfs) so we can't compare with zero. We'll need an inaccurate threshold.
> DiskChecker should handle disk full situation
> ---------------------------------------------
>
> Key: HADOOP-15493
> URL: https://issues.apache.org/jira/browse/HADOOP-15493
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Arpit Agarwal
> Assignee: Arpit Agarwal
> Priority: Critical
> Attachments: HADOOP-15493.01.patch, HADOOP-15493.02.patch
>
>
> DiskChecker#checkDirWithDiskIo creates a file to verify that the disk is
> writable.
> However check should not fail when file creation fails due to disk being
> full. This avoids marking full disks as _failed_.
> Reported by [~kihwal] and [~daryn] in HADOOP-15450.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]