I am working on a fallback if the index of our jira instance after a move/restart is invalid.
The idea was to use the index recovery as it is much faster than the complete rebuild. But I would like to have it automated, so I don't have to look for the snapshot and trigger the recovery.
Via the rest call /rest/api/2/index/summary i get information about the status of the index. But I am not able to trigger the index recovery via rest.
So to execute it from a shell via REST I lack features.
Then I thought about a plugin to perform the index recovery. It should be possible using this Manager:
https://docs.atlassian.com/software/jira/docs/api/7.7.1/index.html?com/atlassian/jira/index/ha/IndexRecoveryManager.html
But I don't know yet, where to find the information/summary about the current index, to find out if it is necessary to perform the recovery.
Does anyone have an idea how to analyse or perform this? Are there any experiences?
Thank you for your help!