We’re occasionally seeing errors during Jira startup related to plugin not being completely initialized when NodeReindexServiceThread re-indexing some of fields related to our Jira plugin.
We’re waiting for several events to happen before running initialization of plugin services:
- PluginEnabledEvent for current plugin
- Spring @PostConstruct
The complete initialization code is available here
I’m not sure whether this is expected (and correct) behaviour or not. If this is how it should be working, we’ll consider changing the ways we initialize plugin services to avoid such issues.