HDFS-4903. Print trash configuration and trash emptier state in namenode log. Contributed by Arpit Agarwal.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1503570 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8f8be404a7
commit
afaec5f52d
|
@ -89,8 +89,11 @@ public class TrashPolicyDefault extends TrashPolicy {
|
|||
this.emptierInterval = (long)(conf.getFloat(
|
||||
FS_TRASH_CHECKPOINT_INTERVAL_KEY, FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT)
|
||||
* MSECS_PER_MINUTE);
|
||||
}
|
||||
|
||||
LOG.info("Namenode trash configuration: Deletion interval = " +
|
||||
this.deletionInterval + " minutes, Emptier interval = " +
|
||||
this.emptierInterval + " minutes.");
|
||||
}
|
||||
|
||||
private Path makeTrashRelativePath(Path basePath, Path rmFilePath) {
|
||||
return Path.mergePaths(basePath, rmFilePath);
|
||||
}
|
||||
|
|
|
@ -440,6 +440,9 @@ Release 2.1.0-beta - 2013-07-02
|
|||
|
||||
HDFS-4912. Cleanup FSNamesystem#startFileInternal. (suresh)
|
||||
|
||||
HDFS-4903. Print trash configuration and trash emptier state in
|
||||
namenode log. (Arpit Agarwal via suresh)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HDFS-4465. Optimize datanode ReplicasMap and ReplicaInfo. (atm)
|
||||
|
|
|
@ -559,7 +559,7 @@ public class NameNode {
|
|||
if (trashInterval == 0) {
|
||||
return;
|
||||
} else if (trashInterval < 0) {
|
||||
throw new IOException("Cannot start tresh emptier with negative interval."
|
||||
throw new IOException("Cannot start trash emptier with negative interval."
|
||||
+ " Set " + FS_TRASH_INTERVAL_KEY + " to a positive value.");
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ public class TestStateTransitionFailure {
|
|||
fail("Transitioned to active but should not have been able to.");
|
||||
} catch (ExitException ee) {
|
||||
assertExceptionContains(
|
||||
"Cannot start tresh emptier with negative interval", ee);
|
||||
"Cannot start trash emptier with negative interval", ee);
|
||||
}
|
||||
} finally {
|
||||
if (cluster != null) {
|
||||
|
|
Loading…
Reference in New Issue