HDFS-17105. mistakenly purge editLogs even after it is empty in NNStorageRetentionManager. (#6036). Contributed by ConfX.
Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
This commit is contained in:
parent
512e39e89d
commit
39f36d9071
@ -80,6 +80,9 @@ public NNStorageRetentionManager(
|
|||||||
Preconditions.checkArgument(numExtraEditsToRetain >= 0,
|
Preconditions.checkArgument(numExtraEditsToRetain >= 0,
|
||||||
DFSConfigKeys.DFS_NAMENODE_NUM_EXTRA_EDITS_RETAINED_KEY +
|
DFSConfigKeys.DFS_NAMENODE_NUM_EXTRA_EDITS_RETAINED_KEY +
|
||||||
" must not be negative");
|
" must not be negative");
|
||||||
|
Preconditions.checkArgument(maxExtraEditsSegmentsToRetain >= 0,
|
||||||
|
DFSConfigKeys.DFS_NAMENODE_MAX_EXTRA_EDITS_SEGMENTS_RETAINED_KEY +
|
||||||
|
" must not be negative");
|
||||||
|
|
||||||
this.storage = storage;
|
this.storage = storage;
|
||||||
this.purgeableLogs = purgeableLogs;
|
this.purgeableLogs = purgeableLogs;
|
||||||
|
Loading…
Reference in New Issue
Block a user