Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-1377

Add a test case for performing block corruption recovery

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: tests
    • Labels:
      None

      Description

      Create file with some data.
      Go to DataNode and vi the block; add some extra data to the block.
      Start doing a bunch of 'hdfs dfs -cat <file path>'s; should see checksum error.
      NameNode should replicate a new healthy block and delete the corrupt block.

        Issue Links

          Activity

          Hide
          dasha.boudnik Dasha Boudnik added a comment -

          Will be starting this today.

          Show
          dasha.boudnik Dasha Boudnik added a comment - Will be starting this today.
          Hide
          cos Konstantin Boudnik added a comment -

          I think it would be pretty hard to do vi from a test - so you should use a non-interactive ways to change the content of a block.

          Show
          cos Konstantin Boudnik added a comment - I think it would be pretty hard to do vi from a test - so you should use a non-interactive ways to change the content of a block.
          Hide
          Virginia Wang Virginia Wang added a comment -

          It can be done with echo "something something" > /path/to/file or cat file2 >> file1 as well.

          Show
          Virginia Wang Virginia Wang added a comment - It can be done with echo "something something" > /path/to/file or cat file2 >> file1 as well.
          Hide
          dasha.boudnik Dasha Boudnik added a comment -

          Closing as a duplicate.

          Show
          dasha.boudnik Dasha Boudnik added a comment - Closing as a duplicate.

            People

            • Assignee:
              dasha.boudnik Dasha Boudnik
              Reporter:
              dasha.boudnik Dasha Boudnik
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development