We have noticed some behaviors from JIRA after running a reindex over the weekend. Most notably, the occurrences of
Tried to reopen the IndexReader, but it threw AlreadyClosedException. Opening a fresh IndexReader.
have been increasing. With the way that we roll our log file, we keep 30 days worth of catalina.out files, that roll every restart. The past three weeks, we have initiated the re-index through a script that runs at 3am. We have noticed that the log reference above has increased from 25 times for the week ending 3/29/15, to 94 entries for the week ending 4/5/15, to 369 entries for a log file that ended 4/7/15, and our current log file that started on 4/7 has 541 entries.
The script that we run uses the API to login and start the reindex. The question I ask is about the Acknowledge button that appears when a re-index completes. What does it do? Does it clear some cache or processes that are holding onto the index readers? I'm pretty sure that the Acknowledgement is not happening in the script. We believe that this is causing performance problems for our environment.