Skip to content

Commit

Permalink
HDFS-17105. mistakenly purge editLogs even after it is empty in NNSto…
Browse files Browse the repository at this point in the history
…rageRetentionManager. (#6036). Contributed by ConfX.

Signed-off-by: He Xiaoqiao <[email protected]>
  • Loading branch information
teamconfx authored Sep 20, 2023
1 parent 512e39e commit 39f36d9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public NNStorageRetentionManager(
Preconditions.checkArgument(numExtraEditsToRetain >= 0,
DFSConfigKeys.DFS_NAMENODE_NUM_EXTRA_EDITS_RETAINED_KEY +
" 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.purgeableLogs = purgeableLogs;
Expand Down

0 comments on commit 39f36d9

Please sign in to comment.