Old journal files not deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Akiban Persistit |
Fix Released
|
Critical
|
Peter Beaman |
Bug Description
At a design partner site the journal extended to 100 files, dating back at least a week. The journal should have been trimmed to no more than 10 files. This is a concise restatement of the initial bug reported as #1027104.
The first remaining journal file is akiban_
The JournalManagerM
Closed = false;
CurrentTimestamp = 1941180015;
BlockSize = 1000000000;
AppendOnly = false;
PageMapSize = 2;
JournalFilePath = /mnt/akiban_
LastValidCheckp
BaseAddress = 252000012130;
JournalCreatedTime = 1341411912660;
LiveTransaction
PageListSize = 2;
CurrentAddress = 352002952537;
CopyingFast = false;
FlushInterval = 100;
CopierInterval = 10000;
RollbackPruning
Copying = false;
JournaledPageCount = 77;
ReadPageCount = 7;
CopiedPageCount = 94705;
DroppedPageCount = 6;
LastCopierException = null;
LastFlusherExce
LastValidCheckp
SlowIoAlertThre
TotalCompletedC
CommitCompletio
Upon investigation we found there was a very old version of a page in the page map for file 252, and even though newer versions of that page were written to the journal and copied, the old version remained. Edited journal dumps for files 252, 253 and 254 are attached.
Related branches
- Nathan Williams: Approve
-
Diff: 970 lines (+400/-151)10 files modifiedsrc/main/java/com/persistit/Configuration.java (+43/-6)
src/main/java/com/persistit/JournalManager.java (+48/-19)
src/main/java/com/persistit/Persistit.java (+1/-0)
src/main/java/com/persistit/RecoveryManager.java (+7/-3)
src/main/java/com/persistit/TransactionPlayer.java (+146/-108)
src/main/java/com/persistit/exception/MissingVolumeException.java (+45/-0)
src/main/java/com/persistit/logging/LogBase.java (+6/-0)
src/main/java/com/persistit/mxbeans/AlertMonitorMXBean.java (+1/-0)
src/main/java/com/persistit/mxbeans/JournalManagerMXBean.java (+6/-0)
src/test/java/com/persistit/JournalManagerTest.java (+97/-15)
Changed in akiban-persistit: | |
milestone: | none → 3.1.3 |
Changed in akiban-persistit: | |
assignee: | nobody → Peter Beaman (pbeaman) |
status: | Confirmed → In Progress |
Changed in akiban-persistit: | |
status: | In Progress → Fix Committed |
Changed in akiban-persistit: | |
status: | Fix Committed → Fix Released |
Journal info