Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4748

MiniJournalCluster#restartJournalNode leaks resources, which causes sporadic test failures

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0-beta
    • Component/s: qjm, test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      MiniJournalCluster#restartJournalNode stops a JournalNode and then recreates a new one with the same configuration. However, it does not maintain a reference to the new JournalNode instance, so therefore it doesn't get stopped inside MiniJournalCluster#shutdown. The JournalNode holds a file lock on its underlying storage, so this can cause sporadic failures in tests like TestQuorumJournalManager.

        Attachments

        1. HDFS-4748.1.patch
          0.9 kB
          Chris Nauroth

          Issue Links

            Activity

              People

              • Assignee:
                cnauroth Chris Nauroth
                Reporter:
                cnauroth Chris Nauroth
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: