Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # dev >> Question about WALEdit


Copy link to this message
-
Re: Question about WALEdit
>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