Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3107 HDFS truncate
  3. HDFS-7843

A truncated file is corrupted after rollback from a rolling upgrade

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Here is a rolling upgrade truncate test from Brandon Li. The basic test step is: (3 nodes cluster with HA)
      1. upload a file to hdfs
      2. start rollingupgrade. finish rollingupgrade for namenode and one datanode.
      3. truncate the file in hdfs to 1byte
      4. do rollback
      5. download file from hdfs, check file size to be original size

      I see the file size in hdfs is correct but can't read it because the block is corrupted.

        Attachments

        1. h7843_20150226.patch
          6 kB
          Tsz Wo Nicholas Sze

          Activity

            People

            • Assignee:
              szetszwo Tsz Wo Nicholas Sze
              Reporter:
              szetszwo Tsz Wo Nicholas Sze
            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: