Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3424

TestDatanodeBlockScanner and TestReplication fail intermittently on Windows

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      The tests change the block length to corrupt the data block. If the block file is opened by the datanode then the test can concurrently modify it on Linux but such concurrent modification is not allowed by the default permissions on Windows. Since this is more of a test issue, the fix would be to have the tests make sure that the block is not open concurrently.

        Issue Links

          Activity

          Hide
          Bikas Saha added a comment -

          Attaching fix.

          Show
          Bikas Saha added a comment - Attaching fix.
          Hide
          Sanjay Radia added a comment -

          Committed to windows branch. Thanks Bikas

          Show
          Sanjay Radia added a comment - Committed to windows branch. Thanks Bikas

            People

            • Assignee:
              Bikas Saha
              Reporter:
              Bikas Saha
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development