PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: Thomas Bock on July 11, 2023, 08:10:14 AM

Title: corrupted journal files
Post by: Thomas Bock on July 11, 2023, 08:10:14 AM
Each time a record with a large text field is written to a file with active journalization, the current journal file becomes corrupted.
As we cannot predict the requested field length, we define such fields with a length of 100 bytes delimited and turn on "extended records". We must always lie about the length in such cases. PxPlus has no problems with file I/O to the data file. So the 100 bytes are a signal for the developer, that there may me much more bytes.
We expect the journal file to be written as properly as the data file. How can we avoid the problem?
Title: Re: corrupted journal files
Post by: Devon Austen on July 11, 2023, 08:50:25 AM
Journalization is not supported for files with extended length records. See the note at the top of the documentation (https://manual.pvxplus.com/?Data%20Mirroring/Enabling%20Journalization.htm)

We have a wish list item looking at adding support for this. If it does get supported there may be limits on how large of a record length is supported with journalization.