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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 2.7.0
    • namenode
    • None
    • 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 Sze

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment