[
https://issues.apache.org/jira/browse/HDFS-5396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
zhaoyunjiong reopened HDFS-5396:
--------------------------------
I made a mistake when I resolved this as Not A Problem.
Because
for (Iterator<StorageDirectory> it =
dirIterator(NameNodeDirType.IMAGE); it.hasNext();)
sd = it.next();
will return last StorageDirectory of image, but due to HDFS-5367, it may not
have fsimage in it.
> FSImage.getFsImageName should check whether fsimage exists
> ----------------------------------------------------------
>
> Key: HDFS-5396
> URL: https://issues.apache.org/jira/browse/HDFS-5396
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 1.2.1
> Reporter: zhaoyunjiong
> Assignee: zhaoyunjiong
> Fix For: 1.3.0
>
> Attachments: HDFS-5396-branch-1.2.patch
>
>
> In https://issues.apache.org/jira/browse/HDFS-5367, fsimage may not write to
> all IMAGE dir, so we need to check whether fsimage exists before
> FSImage.getFsImageName returned.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)