Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.22.0
-
None
-
None
-
Reviewed
Description
long now = now(); boolean shouldCheckpoint = false; if(now >= lastCheckpointTime + periodMSec) { shouldCheckpoint = true; } else { long size = getJournalSize(); if(size >= checkpointSize) shouldCheckpoint = true; }
in configuration determines the period of checkpoint. However, with above code, the Checkpointer triggers a checkpoint every 5 minutes (periodMSec=5*60*1000). According to SecondaryNameNode.java, the first if statement should be:
if(now >= lastCheckpointTime + 1000 * checkpointPeriod) {
Attachments
Attachments
Issue Links
- relates to
-
HADOOP-4539 Streaming Edits to a Backup Node.
- Closed