HDFS-4748. MiniJournalCluster#restartJournalNode leaks resources, which causes sporadic test failures. Contributed by Chris Nauroth.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1476587 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fe3853484e
commit
90612f6423
|
@ -588,6 +588,9 @@ Release 2.0.5-beta - UNRELEASED
|
||||||
HDFS-4768. File handle leak in datanode when a block pool is removed.
|
HDFS-4768. File handle leak in datanode when a block pool is removed.
|
||||||
(Chris Nauroth via suresh)
|
(Chris Nauroth via suresh)
|
||||||
|
|
||||||
|
HDFS-4748. MiniJournalCluster#restartJournalNode leaks resources, which
|
||||||
|
causes sporadic test failures. (Chris Nauroth via suresh)
|
||||||
|
|
||||||
Release 2.0.4-alpha - UNRELEASED
|
Release 2.0.4-alpha - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -178,9 +178,9 @@ public class MiniJournalCluster {
|
||||||
conf.set(DFSConfigKeys.DFS_JOURNALNODE_HTTP_ADDRESS_KEY, "127.0.0.1:" +
|
conf.set(DFSConfigKeys.DFS_JOURNALNODE_HTTP_ADDRESS_KEY, "127.0.0.1:" +
|
||||||
httpAddrs[i].getPort());
|
httpAddrs[i].getPort());
|
||||||
|
|
||||||
JournalNode jn = new JournalNode();
|
nodes[i] = new JournalNode();
|
||||||
jn.setConf(conf);
|
nodes[i].setConf(conf);
|
||||||
jn.start();
|
nodes[i].start();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getQuorumSize() {
|
public int getQuorumSize() {
|
||||||
|
|
Loading…
Reference in New Issue