Stratio / cassandra-lucene-index

Lucene based secondary indexes for Cassandra
Apache License 2.0
600 stars 170 forks source link

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

Open johnyannj opened 6 years ago

johnyannj commented 6 years ago

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.

johnyannj commented 6 years ago

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