Buggy code:
@ Singleton public class MvccEntitySerializationStrategyV2Impl extends MvccEntitySerializationStrategyImpl { private static final IdRowCompositeSerializer ID_SER = IdRowCompositeSerializer . get ( ) ; private static final CollectionScopedRowKeySerializer < Id > ROW_KEY_SER = new CollectionScopedRowKeySerializer ( MvccEntitySerializationStrategyV2Impl . ID_SER ) ; private static final MultiTennantColumnFamily < ScopedRowKey < CollectionPrefixedKey < Id > > , UUID > CF_ENTITY_DATA = new MultiTennantColumnFamily ( "Entity_Version_Data_V2" , MvccEntitySerializationStrategyV2Impl . ROW_KEY_SER , UUIDSerializer . get ( ) ) ; private static final FieldBufferSerializer FIELD_BUFFER_SERIALIZER = FieldBufferSerializer . get ( ) ; private final MvccEntitySerializationStrategyV2Impl . EntitySerializer entitySerializer ; @ Inject public MvccEntitySerializationStrategyV2Impl ( final Keyspace keyspace , final SerializationFig serializationFig , final CassandraFig cassandraFig ) { } @ Override protected AbstractSerializer < EntityWrapper > getEntitySerializer ( ) { } @ Override protected MultiTennantColumnFamily < ScopedRowKey < CollectionPrefixedKey < Id > > , UUID > getColumnFamily ( ) { } @ Override public int getImplementationVersion ( ) { } public final class EntitySerializer extends AbstractSerializer < EntityWrapper > { private final SmileFactory SMILE_FACTORY = new SmileFactory ( ) ; private final ObjectMapper MAPPER = new ObjectMapper ( SMILE_FACTORY ) ; private SerializationFig serializationFig ; private byte STATE_COMPLETE = 0 ; private byte STATE_DELETED = 1 ; private byte STATE_PARTIAL = 2 ; private byte VERSION = 1 ; public EntitySerializer ( final SerializationFig serializationFig ) { } @ Override public ByteBuffer toByteBuffer ( final EntityWrapper wrapper ) { } @ Override public EntityWrapper fromByteBuffer ( final ByteBuffer byteBuffer ) { final FieldBuffer fieldBuffer ; try { fieldBuffer = MvccEntitySerializationStrategyV2Impl . FIELD_BUFFER_SERIALIZER . fromByteBuffer ( byteBuffer ) ; } catch ( Exception e ) { throw new DataCorruptionException ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>de-serialze<seq2seq4repair_space>entity" , e ) ; } FieldBufferParser parser = new FieldBufferParser ( fieldBuffer ) ; byte version = parser . readByte ( ) ; if ( ( VERSION ) != version ) { throw new UnsupportedOperationException ( ( ( "A<seq2seq4repair_space>version<seq2seq4repair_space>of<seq2seq4repair_space>type<seq2seq4repair_space>" + version ) + "<seq2seq4repair_space>is<seq2seq4repair_space>unsupported" ) ) ; } byte state = parser . readByte ( ) ; if ( ( STATE_DELETED ) == state ) { <START_BUG> return new EntityWrapper ( Status . COMPLETE , Optional . < Entity > absent ( ) ) ; <END_BUG> } Entity storedEntity ; byte [ ] array = parser . readBytes ( ) ; try { storedEntity = MAPPER . readValue ( array , Entity . class ) ; } catch ( Exception e ) { throw new DataCorruptionException ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>entity<seq2seq4repair_space>data" , e ) ; } final Optional < Entity > entity = Optional . of ( storedEntity ) ; if ( ( STATE_COMPLETE ) == state ) { return new EntityWrapper ( Status . COMPLETE , entity ) ; } return new EntityWrapper ( Status . PARTIAL , entity ) ; } } }

Fix:
return new EntityWrapper ( Status . DELETED , Optional . < Entity > absent ( ) ) ;