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 "Arpit Gupta (Created) (JIRA)" <ji...@apache.org> on 2011/09/27 20:23:45 UTC

[jira] [Created] (HDFS-2376) fsck reports the fs as healthy even when all replicas of a block are corrupted by overwriting them with smaller content

fsck reports the fs as healthy even when all replicas of a block are corrupted by overwriting them with smaller content
-----------------------------------------------------------------------------------------------------------------------

                 Key: HDFS-2376
                 URL: https://issues.apache.org/jira/browse/HDFS-2376
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 0.20.205.0
            Reporter: Arpit Gupta


Here is the issue
1. Find all 3 replicas for a block
2. Corrupt the 3 blocks by overwriting them with smaller content
3. cat the file which had the above block (cat fails as content is not correct)
4. run fsck and fsck still reports the fs as healthy

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HDFS-2376) fsck reports the fs as healthy even when all replicas of a block are corrupted by overwriting them with smaller content

Posted by "Arpit Gupta (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115778#comment-13115778 ] 

Arpit Gupta commented on HDFS-2376:
-----------------------------------

Here is the output of the dfs -cat

11/09/27 18:06:05 WARN hdfs.DFSClient: Failed to connect to /IP:1019, add to deadNodes and continuejava.io.IOException: Got error for OP_READ_BLOCK, self=/IP:55657, remote=/IP:1019, for file /some_file.txt, for block -607102961416835735_7654

11/09/27 18:06:05 INFO hdfs.DFSClient: Could not obtain block blk_-607102961416835735_7654 from any node: java.io.IOException: No live nodes contain current block. Will get new block locations from namenode and retry



at org.apache.hadoop.hdfs.DFSClient$DFSInputStream.chooseDataNode(DFSClient.java:2093)
        at org.apache.hadoop.hdfs.DFSClient$DFSInputStream.blockSeekTo(DFSClient.java:1897)
        at org.apache.hadoop.hdfs.DFSClient$DFSInputStream.read(DFSClient.java:2048)
        at java.io.DataInputStream.read(DataInputStream.java:83)
        at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:68)
        at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:47)
        at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:100)
        at org.apache.hadoop.fs.FsShell.printToStdout(FsShell.java:114)
        at org.apache.hadoop.fs.FsShell.access$100(FsShell.java:49)
        at org.apache.hadoop.fs.FsShell$1.process(FsShell.java:349)
        at org.apache.hadoop.fs.FsShell$DelayedExceptionThrowing.globAndProcess(FsShell.java:1913)
        at org.apache.hadoop.fs.FsShell.cat(FsShell.java:346)
        at org.apache.hadoop.fs.FsShell.doall(FsShell.java:1557)
        at org.apache.hadoop.fs.FsShell.run(FsShell.java:1776)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
        at org.apache.hadoop.fs.FsShell.main(FsShell.java:1895)



And then after this if the fsck call is made it reports the fs as healthy. It should mark the fs as corrupt.
                
> fsck reports the fs as healthy even when all replicas of a block are corrupted by overwriting them with smaller content
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-2376
>                 URL: https://issues.apache.org/jira/browse/HDFS-2376
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.205.0
>            Reporter: Arpit Gupta
>
> Here is the issue
> 1. Find all 3 replicas for a block
> 2. Corrupt the 3 blocks by overwriting them with smaller content
> 3. cat the file which had the above block (cat fails as content is not correct)
> 4. run fsck and fsck still reports the fs as healthy

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HDFS-2376) fsck reports the fs as healthy even when all replicas of a block are corrupted by overwriting them with smaller content

Posted by "Arpit Gupta (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arpit Gupta resolved HDFS-2376.
-------------------------------

    Resolution: Duplicate

Resolving it as duplicate of HDFS-2263
                
> fsck reports the fs as healthy even when all replicas of a block are corrupted by overwriting them with smaller content
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-2376
>                 URL: https://issues.apache.org/jira/browse/HDFS-2376
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.205.0
>            Reporter: Arpit Gupta
>
> Here is the issue
> 1. Find all 3 replicas for a block
> 2. Corrupt the 3 blocks by overwriting them with smaller content
> 3. cat the file which had the above block (cat fails as content is not correct)
> 4. run fsck and fsck still reports the fs as healthy

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HDFS-2376) fsck reports the fs as healthy even when all replicas of a block are corrupted by overwriting them with smaller content

Posted by "Arpit Gupta (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115855#comment-13115855 ] 

Arpit Gupta commented on HDFS-2376:
-----------------------------------

Thanks Aaron
                
> fsck reports the fs as healthy even when all replicas of a block are corrupted by overwriting them with smaller content
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-2376
>                 URL: https://issues.apache.org/jira/browse/HDFS-2376
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.205.0
>            Reporter: Arpit Gupta
>
> Here is the issue
> 1. Find all 3 replicas for a block
> 2. Corrupt the 3 blocks by overwriting them with smaller content
> 3. cat the file which had the above block (cat fails as content is not correct)
> 4. run fsck and fsck still reports the fs as healthy

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HDFS-2376) fsck reports the fs as healthy even when all replicas of a block are corrupted by overwriting them with smaller content

Posted by "Aaron T. Myers (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115850#comment-13115850 ] 

Aaron T. Myers commented on HDFS-2376:
--------------------------------------

Hey Arpit, this sounds like it might be a duplicate of HDFS-2263. Do you agree?
                
> fsck reports the fs as healthy even when all replicas of a block are corrupted by overwriting them with smaller content
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-2376
>                 URL: https://issues.apache.org/jira/browse/HDFS-2376
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.205.0
>            Reporter: Arpit Gupta
>
> Here is the issue
> 1. Find all 3 replicas for a block
> 2. Corrupt the 3 blocks by overwriting them with smaller content
> 3. cat the file which had the above block (cat fails as content is not correct)
> 4. run fsck and fsck still reports the fs as healthy

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira