hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-10764) Fix INodeFile#getBlocks to not return null
Date Mon, 15 Aug 2016 23:03:20 GMT

     [ https://issues.apache.org/jira/browse/HDFS-10764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Arpit Agarwal updated HDFS-10764:
---------------------------------
    Attachment: HDFS-10764.01.patch

> Fix INodeFile#getBlocks to not return null
> ------------------------------------------
>
>                 Key: HDFS-10764
>                 URL: https://issues.apache.org/jira/browse/HDFS-10764
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 3.0
>            Reporter: Arpit Agarwal
>            Assignee: Arpit Agarwal
>         Attachments: HDFS-10764.01.patch
>
>
> Not all callers of INodeFile#getBlocks check for null. e.g.
> {code}
>   public final QuotaCounts storagespaceConsumedContiguous(
>       BlockStoragePolicy bsp) {
> ...
>       // Collect all distinct blocks
>       Set<BlockInfo> allBlocks = new HashSet<>(Arrays.asList(getBlocks()));
> {code}
> We can either fix each caller or alternatively fix getBlocks to never return null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
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