Couchbase-elasticsearch sync issue
I've been investigating whether to use couchbase with elasticsearch. There's an excellent blog http://blog.couchbase.com/couchbase-and-full-text-search-couchbase-trans... on how to set this up. I have one issue.
If elasticsearch is down, and you send a document to couchbase, then bring back up elasticsearch, the document won't be indexed by elasticsearch.
I've tried flushing the index to have elasticsearch pick up the document, but flushing doesn't seem to work. In fact, I see that only half the shards flushed successfully.
curl -XPOST http://localhost:9200/beer-sample/_flush
I'm not sure if this is an issue as half my shards seem to be under the name "Unassigned".
My only current solution is to restart Couchbase, but obviously I wouldn't want to do that in production.
Am I missing something?