Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6197

Rolling upgrade rollback on Windows can fail attempting to rename edit log segment files to a destination that already exists.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 3.0.0-alpha1
    • Fix Version/s: 2.4.1
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      As part of a rollback from a rolling upgrade in progress, we discard edit log segments by renaming the file with suffix ".trash". If no new edits arrive in between multiple attempts, then the ".trash" file may still exist. On Windows, java.io.File#renameTo fails if the destination already exists though. This is visible right now as a failure in TestRollingUpgrade#testRollback when running on Windows.

        Attachments

        1. HDFS-6197.1.patch
          2 kB
          Chris Nauroth

          Activity

            People

            • Assignee:
              cnauroth Chris Nauroth
              Reporter:
              cnauroth Chris Nauroth
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: