byte[] nonVirtKey = idMeta.unformVirtRowKey((byte[]) key);
Object obj = meta.getIdField().translateFromBytes(nonVirtKey);
if(query != null) {
//for now, log the exception, but do not set it in the keyVal. This prevents a corrupted index from
//breaking all queries that use that index.
RowNotFoundException exc = new RowNotFoundException("Your query="+query+" contained a value with a pk where that entity no longer exists in the nosql store");
//keyVal.setException(exc);
log.warn("Not erroring out, just a warning, there is an index pointing to a non-existant row. The index is "+obj+". Either the index is corrupt, or the data is not yet consistent, but might be eventually", exc);
}
keyVal.setKey(obj);
} else {