What is the purpose of the commit.lock file, when is it used, and by which classes?
Created May 7, 2012
The commit.lock is also obtained by the IndexWriter when it is about to write the segments file and until it has finished trying to delete obsolete index files.
The commit.lock should thus never be held for long, since while it is obtained files are only opened or deleted, and one small file is read or written.