You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Aaron T. Myers (JIRA)" <ji...@apache.org> on 2015/07/11 01:13:04 UTC
[jira] [Commented] (HDFS-4746) ClassCastException in
BlockManager.addStoredBlock() due to that blockReceived came after file was
closed.
[ https://issues.apache.org/jira/browse/HDFS-4746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623039#comment-14623039 ]
Aaron T. Myers commented on HDFS-4746:
--------------------------------------
Should we go ahead and close out this JIRA, since I don't think anyone intends to maintain 2.2 and 2.0 anymore?
> ClassCastException in BlockManager.addStoredBlock() due to that blockReceived came after file was closed.
> ---------------------------------------------------------------------------------------------------------
>
> Key: HDFS-4746
> URL: https://issues.apache.org/jira/browse/HDFS-4746
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 2.0.3-alpha
> Reporter: Konstantin Shvachko
>
> In some cases the last block replica of a file can be reported after the file was closed. In this case file inode is of type INodeFile. BlockManager.addStoredBlock() though expects it to be INodeFileUnderConstruction, and therefore class cast to MutableBlockCollection fails.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)