hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy Xiang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-9870) HFileDataBlockEncoderImpl#diskToCacheFormat uses wrong format
Date Thu, 31 Oct 2013 21:57:19 GMT
Jimmy Xiang created HBASE-9870:

             Summary: HFileDataBlockEncoderImpl#diskToCacheFormat uses wrong format
                 Key: HBASE-9870
                 URL: https://issues.apache.org/jira/browse/HBASE-9870
             Project: HBase
          Issue Type: Bug
            Reporter: Jimmy Xiang

In this method, we have

    if (block.getBlockType() == BlockType.ENCODED_DATA) {
      if (block.getDataBlockEncodingId() == onDisk.getId()) {
        // The block is already in the desired in-cache encoding.
        return block;

This assumes onDisk encoding is the same as that of inCache.  This is not true when we change
the encoding of a CF.  This could be one of the reasons I got data loss with online encoding

If I make sure onDisk == inCache all the time, my ITBLL with online encoding change worked
once for me.

This message was sent by Atlassian JIRA

View raw message