Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.4-alpha
-
None
-
Reviewed
Description
The code in NNStorageRetentionManager#purgeOldStorage is intended to place a cap on the number of extra edit log segments retained beyond what is strictly required to replay the FS history since the last fsimage. In fact this code currently places a limit on the total number of extra edit log segments. If the number of required segments is greater than the configured cap, there will be no data loss, but an ugly error will be thrown and the NN will fail to start.
The fix is simple, and in the meantime a work-around is just to raise the value of dfs.namenode.max.extra.edits.segments.retained and start the NN.