rantav/hector — Issue #323: IndexedSlices not working on 0.8 branch
Author: patricioe
Created: 2011-11-02 07:26:57+00:00
State: open
Labels: bug, Core

We noticed a commit (mine) broke the functionality (that was not optimal either)

https://github.com/rantav/hector/commit/ec04c01ab77a91d7d735a29a4f5ce79567c92ac4#L0R215

I observed also the following output in the logs:

ERROR [main]: Unprefixed value received, throwing exception...
Unprefixed value received, throwing exception...

and within the VirtualKeyspace:

@Override
public Map> getIndexedSlices(
ColumnParent columnParent, IndexClause indexClause,
SlicePredicate predicate) throws HectorException {

if (indexClause.isSetStart_key())
indexClause.setStart_key(ps.toByteBuffer(indexClause.start_key));

return ps.fromBytesMap(super.getIndexedSlices(columnParent, indexClause,
predicate));
}

is not prefixing the columnParent, making the operation very inefficient as it will filter out the keys that are not prefixed properly.