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

TestHDFSServerPorts fails on LINUX (NFS mounted directory) and on WINDOWS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.18.0
    • 0.18.0
    • None
    • None
    • LINUX, WINDOWS

    • Reviewed

    Description

      HADOOP-2656 changes the way BlockScanner and BlockScannerThread are created. TestHDFSServerPorts tries to create a DataNode object, but expects a failure while starting it. As part of creating DataNode object we create BlockScanner object but not its corresponding BlockScannerThread as Daemon. While in shutdown() we check if BlockScannerThread is not null, then call BlockScanner.shutdown() to close a reference to LogFile it holds.

      Now, on NFS mount and Windows, if a reference to file remains deleting the directory either leaves a .nfsXXXXX file or is not allowed (on windows). This was causing the test to fail.

      Attachments

        1. HADOOP-HDFSServerPorts.patch
          0.6 kB
          Lohit Vijaya Renu

        Activity

          People

            lohit Lohit Vijaya Renu
            lohit Lohit Vijaya Renu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: