-
1. Re: Journal file increases after executing PrintData or PrintPages
clebert.suconic Aug 31, 2011 10:11 AM (in response to mickey8)You can.. but always backup your data first...
It would be better to runt it on another copy. PrintData will have its own sizes and it won't respect what's on the configs.
-
2. Re: Journal file increases after executing PrintData or PrintPages
mickey8 Sep 1, 2011 12:07 AM (in response to clebert.suconic)Hi, Clebert.
Thank you for your reply.
OK, Now we use PrintData and PrintPages after backup.
PrintData will have its own sizes and it won't respect what's on the configs.
I saw the source code of JournalImpl#load(final LoaderCallback loadManager, final boolean changeData). If changeData is true, the journal file with no data is added to filesRepository as the free file. But if false, it just ignore. And new file is created by JournalFilesRepository#ensureMinFiles() because there is no file in JournalFilesRepository#freeFiles.
At HornetQ2.2.2Final, the journal file with no data was always added to filesRepository. Those behavior had changed by HornetQ-714. I made the patch that add the code of HornetQ2.2.2Final to HornetQ2.2.5(Tech Preview). PrintData and PrintPages are very useful to confirm the data of journal. We want to use PrintData and PrintPages without the side effect if possible.
Thanks,
Mikitaro Hachiyanagi
-
JournalFilesRepository.java.patch.zip 427 bytes
-
JournalImpl.java.patch.zip 382 bytes
-