I'd be more inclined to suspect a bug in sstable2json.

On Wed, Apr 13, 2011 at 8:59 AM, Terje Marthinussen
<tmarthinus...@gmail.com> wrote:
> Hi,
> we do see occasional row corruptions now and then and especially in hinted
> handoffs.
> This may be related to fairly long rows (millions of columns)
> I was dumping one corrupted hint .db file and I noticed that they do in fact
> have values.
> The doc say
> Subcolumn values are always empty; instead, we store the row data "normally"
> The code does
>             add(path, ByteBufferUtil.EMPTY_BYTE_BUFFER,
> System.currentTimeMillis(), cf.metadata().getGcGraceSeconds());
> and if you run sstable2json you will see that columns have values like
>  "4d8eb49d",
> I guess an EMPTY_BYTE_BUFFER is not entirely an empty value. Not such a big
> deal, but it may be that we are wasting 4 bytes per hint here?
> Just a curiosity I thought I would mention before I forget it.
> Terje



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Reply via email to