hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun Lin (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HDFS-13863) FsDatasetImpl should log DiskOutOfSpaceException
Date Wed, 29 Aug 2018 07:47:00 GMT

    [ https://issues.apache.org/jira/browse/HDFS-13863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16596047#comment-16596047
] 

Yiqun Lin edited comment on HDFS-13863 at 8/29/18 7:46 AM:
-----------------------------------------------------------

LGTM, +1. Hold off the commit to let [~arpitagarwal] to have a look.


was (Author: linyiqun):
LGMT, +1. Hold off the commit to let [~arpitagarwal] to have a look.

> FsDatasetImpl should log DiskOutOfSpaceException
> ------------------------------------------------
>
>                 Key: HDFS-13863
>                 URL: https://issues.apache.org/jira/browse/HDFS-13863
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>    Affects Versions: 3.1.0, 2.9.1, 3.0.3
>            Reporter: Fei Hui
>            Assignee: Fei Hui
>            Priority: Major
>         Attachments: HDFS-13863.001.patch, HDFS-13863.002.patch, HDFS-13863.003.patch
>
>
> The code in function *createRbw* as follow
> {code:java}
>         try {
>           // First try to place the block on a transient volume.
>           ref = volumes.getNextTransientVolume(b.getNumBytes());
>           datanode.getMetrics().incrRamDiskBlocksWrite();
>         } catch (DiskOutOfSpaceException de) {
>           // Ignore the exception since we just fall back to persistent storage.
>         } finally {
>           if (ref == null) {
>             cacheManager.release(b.getNumBytes());
>           }
>         }
> {code}
> I think we should log the exception because it took me long time to resolve problems,
and maybe others face the same problems.
> When i test ram_disk, i found no data was written into randomdisk. I debug, deep into
the source code, and found that randomdisk size was less than reserved space. I think if message
was logged, i would resolve the problem quickly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message