Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6283

The exception meessage in FileUtil$HardLink.getLinkCount(..) is not clear

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.21.0
    • fs
    • None
    • Reviewed

    Description

      When a file is not found, FileUtil$HardLink.getLinkCount(..) shows the following error message.

      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
      

      It looks like that there was a uncaught NumberFormatException.

      Attachments

        1. c6283_20091007.patch
          3 kB
          Tsz-wo Sze
        2. c6283_20090923.patch
          0.6 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: