>From javadoc:
* In the new world, all the edits for a given transaction are written
* out as a single record, for example:
*
* <logseq#-for-entire-txn>:<WALEdit-for-entire-txn>
The keyvalues for the three edits would be stored in one record.
public void readFields(DataInput in) throws IOException {
If only two got written, the above method would throw IOException.
Cheers
On Mon, Oct 8, 2012 at 12:54 PM, Flavio Junqueira <[email protected]> wrote:
> I was wondering if there is any mechanism implemented to detect WALEdits
> that haven't been entirely written to the wal. Say that a transaction
> (using the terminology in the header of the WALEdit class) has three edits,
> but only two get written to the wal. How do we detect that it is a corrupt
> record when reading?
>
> Thanks!
> -Flavio