[
https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz Wo (Nicholas), SZE updated HADOOP-6283:
-------------------------------------------
Description:
When a file is not found, FileUtil$HardLink.getLinkCount(..) shows the
following error message.
{noformat}
java.lang.NumberFormatException: For input string: ""
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:470)
at java.lang.Integer.parseInt(Integer.java:499)
at
org.apache.hadoop.fs.FileUtil$HardLink.getLinkCount(FileUtil.java:663)
at
org.apache.hadoop.hdfs.server.datanode.ReplicaInfo.detachBlock(ReplicaInfo.java:209)
...
stat: cannot stat
`/home/tsz/hadoop/hdfs/h265/build/test/data/dfs/data/data3/current/finalized/blk_-94418387820168072_1001.meta':
No such file or directory on
file:/home/tsz/hadoop/hdfs/h265/build/test/data/dfs/data/data3/current/finalized/blk_-94418387820168072_1001.meta
{noformat}
It looks like that there was a uncaught NumberFormatException.
was:
{noformat}
java.lang.NumberFormatException: For input string: ""
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:470)
at java.lang.Integer.parseInt(Integer.java:499)
at
org.apache.hadoop.fs.FileUtil$HardLink.getLinkCount(FileUtil.java:663)
at
org.apache.hadoop.hdfs.server.datanode.ReplicaInfo.detachBlock(ReplicaInfo.java:209)
...
{noformat}
Summary: The exception meessage in FileUtil$HardLink.getLinkCount(..)
is not clear (was: FileUtil$HardLink.getLinkCount(..) throws
NumberFormatException)
> The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear
> -------------------------------------------------------------------------
>
> Key: HADOOP-6283
> URL: https://issues.apache.org/jira/browse/HADOOP-6283
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Reporter: Tsz Wo (Nicholas), SZE
>
> When a file is not found, FileUtil$HardLink.getLinkCount(..) shows the
> following error message.
> {noformat}
> java.lang.NumberFormatException: For input string: ""
> at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> at java.lang.Integer.parseInt(Integer.java:470)
> at java.lang.Integer.parseInt(Integer.java:499)
> at
> org.apache.hadoop.fs.FileUtil$HardLink.getLinkCount(FileUtil.java:663)
> at
> org.apache.hadoop.hdfs.server.datanode.ReplicaInfo.detachBlock(ReplicaInfo.java:209)
> ...
> stat: cannot stat
> `/home/tsz/hadoop/hdfs/h265/build/test/data/dfs/data/data3/current/finalized/blk_-94418387820168072_1001.meta':
> No such file or directory on
> file:/home/tsz/hadoop/hdfs/h265/build/test/data/dfs/data/data3/current/finalized/blk_-94418387820168072_1001.meta
> {noformat}
> It looks like that there was a uncaught NumberFormatException.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.