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

NameNode and SecondaryNameNode fail to restart because of abnormal filenames.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.18.3
    • 0.18.4, 0.19.2, 0.20.1, 0.21.0
    • None
    • None
    • 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 Sze
        4. 6017_20090611.patch
          2 kB
          Tsz-wo Sze

        Issue Links

        Activity

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

          People

            szetszwo Tsz-wo Sze
            rangadi Raghu Angadi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment