Stratio/cassandra-lucene-index

The query result is incorrect, when the data between the replicas are inconsistent

johnyannj opened this issue · 1 comments

I have a table with scli index in cassandra. there are three replicas (replication factor is 3).

When I execute the delete with LOCAL_QUORUM.

The deletion was successful on the two copies, but the last one failed.

when I query by scli index with LOCAL_QUORUM:

the failed one will return data(because delete failed),
but the success two copies will return nothing(because the lucene document was deleted already).

then the last result is incorrect.

the lucene documents are deleted directed in com/stratio/cassandra/lucene/IndexWriterWide.scala