HDFS-3856. TestHDFSServerPorts failure is causing surefire fork failure. Contributed by Colin Patrick McCabe
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1377934 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
24e47ebc18
commit
b29cb2d997
@ -684,6 +684,9 @@ Branch-2 ( Unreleased changes )
|
|||||||
HDFS-3683. Edit log replay progress indicator shows >100% complete. (Plamen
|
HDFS-3683. Edit log replay progress indicator shows >100% complete. (Plamen
|
||||||
Jeliazkov via atm)
|
Jeliazkov via atm)
|
||||||
|
|
||||||
|
HDFS-3856. TestHDFSServerPorts failure is causing surefire fork failure.
|
||||||
|
(Colin Patrick McCabe via eli)
|
||||||
|
|
||||||
BREAKDOWN OF HDFS-3042 SUBTASKS
|
BREAKDOWN OF HDFS-3042 SUBTASKS
|
||||||
|
|
||||||
HDFS-2185. HDFS portion of ZK-based FailoverController (todd)
|
HDFS-2185. HDFS portion of ZK-based FailoverController (todd)
|
||||||
|
@ -511,13 +511,13 @@ private void stopCommonServices() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void startTrashEmptier(Configuration conf) throws IOException {
|
private void startTrashEmptier(Configuration conf) throws IOException {
|
||||||
long trashInterval = namesystem.getServerDefaults().getTrashInterval();
|
long trashInterval =
|
||||||
|
conf.getLong(FS_TRASH_INTERVAL_KEY, FS_TRASH_INTERVAL_DEFAULT);
|
||||||
if (trashInterval == 0) {
|
if (trashInterval == 0) {
|
||||||
return;
|
return;
|
||||||
} else if (trashInterval < 0) {
|
} else if (trashInterval < 0) {
|
||||||
throw new IOException("Cannot start tresh emptier with negative interval."
|
throw new IOException("Cannot start tresh emptier with negative interval."
|
||||||
+ " Set " + CommonConfigurationKeys.FS_TRASH_INTERVAL_KEY + " to a"
|
+ " Set " + FS_TRASH_INTERVAL_KEY + " to a positive value.");
|
||||||
+ " positive value.");
|
|
||||||
}
|
}
|
||||||
this.emptier = new Thread(new Trash(conf).getEmptier(), "Trash Emptier");
|
this.emptier = new Thread(new Trash(conf).getEmptier(), "Trash Emptier");
|
||||||
this.emptier.setDaemon(true);
|
this.emptier.setDaemon(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user