Sorry, pasted the wrong trace. Please Ignore it...
The actual issue is not IndexAlreadyClosedException but Stream Closed
Exception..
i.e., whenever search is on-going with IndexReader.refCount > 0 & merge has
just completed, IndexFileDeleter blindly deletes the files causing
StreamClosedException
Sometimes during an ongoing search we receive an IndexReaderClosedException
& found that it happens when a merge is completed.
We are on an older version of lucene (4.6.1).
IndexFileDeleter (KeepOnlyLastCommitDeletionPolicy) deletes the file after
the merge completes but we have an open IndexSear