Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1-win
    • Fix Version/s: 1-win
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      One step of the test is to change the edit directory permission to "000" and then do rolledit. On linux rolledit operation will fail and the edit directory will be considered as failed by NN.

      However, changing the directory permission to 000 on Windows doesn't affect some accessibility of its sub-directories and files. Therefore, the edit files in the edit directory is still accessible and thus is not considered as "failed" by NN, which eventually causes test failure.

        Issue Links

          Activity

          Hide
          Suresh Srinivas added a comment -

          I committed the patch. Thank you Brandon.

          Show
          Suresh Srinivas added a comment - I committed the patch. Thank you Brandon.
          Hide
          Suresh Srinivas added a comment -

          +1 for the patch.

          Show
          Suresh Srinivas added a comment - +1 for the patch.
          Hide
          Brandon Li added a comment -

          Uploaded a patch for this issue. Basically, the patch provides a new method in NN. This new method is used for error injection tests only, which closes the edits stream(thus the file is released by NN) and replace it with a mocked stream. The mocked stream can inject edits log access errors.

          Show
          Brandon Li added a comment - Uploaded a patch for this issue. Basically, the patch provides a new method in NN. This new method is used for error injection tests only, which closes the edits stream(thus the file is released by NN) and replace it with a mocked stream. The mocked stream can inject edits log access errors.

            People

            • Assignee:
              Brandon Li
              Reporter:
              Brandon Li
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development