We need to implement a locking mechanism for a full-reindexing SOLR server pool. We could use a database, Zookeeper as our locking mechanism but thats a lot of work. Could solr do it?
I noticed the core admin RENAME function (http://wiki.apache.org/solr/CoreAdmin#RENAME) Is this an synchronous atomic operation? What I'm thinking is we create a solr core named 'lock' and any process that wants to obtain a solr server from the pool tries to rename the 'lock' core to say 'lock.someuniqueid'. If it fails, then it tries another server in the pools or waits a bit. If it succeeds, it reindexes it's data and then renames 'lock.someuniqueid' back to 'lock' to return the server back to the pool. -- View this message in context: http://lucene.472066.n3.nabble.com/Is-the-CoreAdmin-RENAME-method-atomic-tp4061944.html Sent from the Solr - User mailing list archive at Nabble.com.