Yelp / nrtsearch

A high performance gRPC server on top of Apache Lucene
Apache License 2.0
266 stars 40 forks source link

Remove replicas on NOT_FOUND status exception #770

Closed aprudhomme closed 2 weeks ago

aprudhomme commented 2 weeks ago

The replication server will now return the NOT_FOUND status if the requested index does not exist. This change makes it so the primary will remove replicas if it receives that status. This is useful when ip reuse causes the primary to send requests to replicas from different clusters.