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

MiniJournalCluster#restartJournalNode leaks resources, which causes sporadic test failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0-beta
    • qjm, test
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: