Chris Nauroth created HDFS-4748: ----------------------------------- Summary: MiniJournalCluster#restartJournalNode leaks resources, which causes sporadic test failures Key: HDFS-4748 URL: https://issues.apache.org/jira/browse/HDFS-4748 Project: Hadoop HDFS Issue Type: Bug Components: qjm, test Reporter: Chris Nauroth Assignee: Chris Nauroth Fix For: 3.0.0
{{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}}. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira