In Alfresco 4.2.c (likely also in 4.2.b and 4.2.a), solr comes with
alfresco.enableMultiThreadedTracking=true
In the default setup I get:
14:02:31,502 ERROR [org.alfresco.solr.tracker.CoreTracker] Tracking failed
java.nio.channels.OverlappingFileLockException
at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)
at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152)
at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1017)
at java.nio.channels.FileChannel.tryLock(FileChannel.java:1154)
...
Stopping solr and setting that false for both archive and workspace (archive|workspace)-SpacesStore/conf/solrcore.properties isn't sufficient. There will be other problems with the solr indexes.
So I just blow away the indexes and have them rebuild.
1. stop solr (and/or alfresco)
2. rm -rf archive/SpacesStore/* workspace/SpacesStore/*
3. rm -rf archive-SpacesStore/alfrescoModels workspace/SpacesStore/alfrescoModels
4. start solr (and/or alfresco).
Blowing away the models like that can lead to solr trying to index items for which the models haven't been indexed yet (leading to more solr related log entries). After everything is indexed though, those error logs should not appear anymore and solr will be stable moving forward.