You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2009/09/23 23:57:16 UTC

[jira] Created: (HADOOP-6283) FileUtil$HardLink.getLinkCount(..) throws NumberFormatException

FileUtil$HardLink.getLinkCount(..) throws NumberFormatException
---------------------------------------------------------------

                 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


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo (Nicholas), SZE updated HADOOP-6283:
-------------------------------------------

    Attachment: c6283_20091007.patch

c6283_20091007.patch: also changed the exception messages.

> 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
>            Priority: Minor
>         Attachments: c6283_20090923.patch, c6283_20091007.patch
>
>
> 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.


[jira] Updated: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ 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:
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.

       Priority: Minor  (was: Major)

> 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
>            Priority: Minor
>
> 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.


[jira] Updated: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo (Nicholas), SZE updated HADOOP-6283:
-------------------------------------------

    Status: Patch Available  (was: Open)

> 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
>            Priority: Minor
>         Attachments: c6283_20090923.patch
>
>
> 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.


[jira] Commented: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763609#action_12763609 ] 

Hadoop QA commented on HADOOP-6283:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12421555/c6283_20091007.patch
  against trunk revision 822805.

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/75/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/75/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/75/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/75/console

This message is automatically generated.

> 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
>            Assignee: Tsz Wo (Nicholas), SZE
>            Priority: Minor
>         Attachments: c6283_20090923.patch, c6283_20091007.patch
>
>
> 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.


[jira] Commented: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763319#action_12763319 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-6283:
------------------------------------------------

Thanks, Dhruba for the review.

No new tests will be added for this since it only changes exception messages.

> 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
>            Priority: Minor
>         Attachments: c6283_20090923.patch, c6283_20091007.patch
>
>
> 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.


[jira] Updated: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo (Nicholas), SZE updated HADOOP-6283:
-------------------------------------------

    Attachment: c6283_20090923.patch

c6283_20090923.patch: throws FileNotFoundException if the file does not exist.

> 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
>            Priority: Minor
>         Attachments: c6283_20090923.patch
>
>
> 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.


[jira] Commented: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763628#action_12763628 ] 

Hudson commented on HADOOP-6283:
--------------------------------

Integrated in Hadoop-Common-trunk-Commit #55 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk-Commit/55/])
    . Improve the exception messages thrown by FileUtil$HardLink.getLinkCount(..).


> 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
>            Assignee: Tsz Wo (Nicholas), SZE
>            Priority: Minor
>             Fix For: 0.22.0
>
>         Attachments: c6283_20090923.patch, c6283_20091007.patch
>
>
> 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.


[jira] Commented: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763290#action_12763290 ] 

dhruba borthakur commented on HADOOP-6283:
------------------------------------------

+1. Code looks good.

> 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
>            Priority: Minor
>         Attachments: c6283_20090923.patch, c6283_20091007.patch
>
>
> 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.


[jira] Updated: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo (Nicholas), SZE updated HADOOP-6283:
-------------------------------------------

        Assignee: Tsz Wo (Nicholas), SZE
    Hadoop Flags: [Reviewed]
          Status: Patch Available  (was: Open)

> 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
>            Assignee: Tsz Wo (Nicholas), SZE
>            Priority: Minor
>         Attachments: c6283_20090923.patch, c6283_20091007.patch
>
>
> 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.


[jira] Commented: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763973#action_12763973 ] 

Hudson commented on HADOOP-6283:
--------------------------------

Integrated in Hadoop-Common-trunk #122 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk/122/])
    . Improve the exception messages thrown by FileUtil$HardLink.getLinkCount(..).


> 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
>            Assignee: Tsz Wo (Nicholas), SZE
>            Priority: Minor
>             Fix For: 0.22.0
>
>         Attachments: c6283_20090923.patch, c6283_20091007.patch
>
>
> 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.


[jira] Updated: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo (Nicholas), SZE updated HADOOP-6283:
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.22.0
           Status: Resolved  (was: Patch Available)

I have committed this.

> 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
>            Assignee: Tsz Wo (Nicholas), SZE
>            Priority: Minor
>             Fix For: 0.22.0
>
>         Attachments: c6283_20090923.patch, c6283_20091007.patch
>
>
> 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.


[jira] Updated: (HADOOP-6283) The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-6283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo (Nicholas), SZE updated HADOOP-6283:
-------------------------------------------

    Status: Open  (was: Patch Available)

> 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
>            Priority: Minor
>         Attachments: c6283_20090923.patch, c6283_20091007.patch
>
>
> 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.