Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6017

NameNode and SecondaryNameNode fail to restart because of abnormal filenames.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.18.3
    • Fix Version/s: 0.18.4, 0.19.2, 0.20.1, 0.21.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      SecondaryNameNode (and NameNode) fail to load the edits log. I will include stack trace in next comment.

      This is traced to the fact that LeaseManager uses String.relaceFirst() to replace front of a sting with another string. Unfortunately replaceFirst() uses regex, though the first argument is quoted by the code, the second argument is not. (the second arg is not really treated as regex but still gets processed for back references (as in 'sed s/first/second/g')

      As Nicholas suggested, it is just simpler to use substring() to replace part of the string.

        Attachments

        1. HADOOP-6017-branch-20.patch
          2 kB
          Raghu Angadi
        2. HADOOP-6017-branch-18.patch
          3 kB
          Raghu Angadi
        3. 6017_20090611b.patch
          2 kB
          Tsz Wo Nicholas Sze
        4. 6017_20090611.patch
          2 kB
          Tsz Wo Nicholas Sze

          Issue Links

            Activity

              People

              • Assignee:
                szetszwo Tsz Wo Nicholas Sze
                Reporter:
                rangadi Raghu Angadi
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: