New Solr 3.6, 4.x Feature: Checking Index Locks at Startup
SOLR-3156 was recently given a patch by Luca Cavanna, which was committed by Martijn van Groningen:
When using simple or native lockType and the application server is not shutdown properly (kill -9), you don't notice problems until someone tries to add or delete a document. In fact, you get errors every time Solr opens a new IndexWriter on the "locked" index. I'm aware of the unlockOnStartup option, but I'd prefer to know and act properly when there's a lock, and I think it would be better to know on startup, since Solr is not going to work properly.
So, you can still use that unlockOnStartup option to make sure that your index is automatically unlocked, but in 3.6 and 4x you won't have to fly blind on startup if you don't have that option enabled. If the new patch notifies you that your index is locked, you will have to make sure that you unlock the index manually so that Solr will start correctly.