cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terje Marthinussen <>
Subject value of hinted handoff column not really empty...?
Date Wed, 13 Apr 2011 13:59:24 GMT

we do see occasional row corruptions now and then and especially in hinted

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

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.


View raw message