Here is how I got SolrJ to delete the write.lock file. I switched to the CoreContainer's remove() method. So the new code is:
... SolrCore curCore = container.remove("core1"); curCore.close(); Now my understanding for why it is working. Based on Solr source code, the issue had to do with the core's reference count not ending up at zero when the close() method is called. The getCore() method increments the reference count while remove() doesn't. Since the close() method decrements the count first and if and only if the count is zero it would unlock the core, i.e. remove the write.lock. Regards, Koorosh -- View this message in context: http://lucene.472066.n3.nabble.com/Indexing-leave-behind-write-lock-file-tp3701915p3705554.html Sent from the Solr - User mailing list archive at Nabble.com.