How to disable the JIRA re-index on startup

I'm writing this while i'm waiting for my JIRA re-index to finish. I've just installed a fresh JIRA and then restored a backup. Upon starting the Windows service it has started an index as part of the restore. I really didnt want it to do that. My evening is already long enough with the upgrade process. I would rather set it re-indexing at the end once i've added all my addons.

Looking around I can see something from JIRA 5.1.5 relating to jira.index.max.reindexes=0 in the jira-config.properties. If I add that to the jira-config.properties before I start the service will it skip the re-indexing? I'm running JIRA 7.2.4 here.

2 answers

While it's probably not a best practice, you can shut down the system while the re-index is running, start it back up to finish installing the plugins and then re-run your re-index.
The other option that you could have tried, is to place the plugin jar files directly into the JIRA-HOME/plugins/installed-plugins directory before you turn it on for the first time.  That way when you run the import and the re-index starts, your plugins will already be installed.  

TIP: You cannot place obr files directly into the plugins directory.  They need to be installed through the UPM.  Once they have been installed, if you look in the installed-plugins directory, you will now see the needed jar files that you can copy and place directly into the installed-plugins directory. 

Ok, so after the backup has been restored from inside the UI and I can see that its re-indexing inside the atlassian-jira.log I can stop the service.

I can see that what happens after the index has finished, isn't that much (according to the log).

2016-12-01 21:23:33,305 IssueIndexer:thread-8 INFO admin 1213x277x1 1o8tbeo 127.0.0.1 /secure/admin/XmlRestore.jspa [c.a.j.bc.dataimport.DefaultDataImportService] Re-indexing is 96% complete. Current index: Issue
2016-12-01 21:24:07,999 IssueIndexer:thread-3 INFO admin 1213x277x1 1o8tbeo 127.0.0.1 /secure/admin/XmlRestore.jspa [c.a.j.bc.dataimport.DefaultDataImportService] Re-indexing is 97% complete. Current index: Issue
2016-12-01 21:24:31,337 JiraImportTaskExecutionThread-1 INFO admin 1213x277x1 1o8tbeo 127.0.0.1 /secure/admin/XmlRestore.jspa [c.a.j.bc.dataimport.DefaultDataImportService] Re-indexing is 97% complete. Current index: SearchRequest
2016-12-01 21:24:46,344 SharedEntityIndexer:thread-5 INFO admin 1213x277x1 1o8tbeo 127.0.0.1 /secure/admin/XmlRestore.jspa [c.a.j.bc.dataimport.DefaultDataImportService] Re-indexing is 98% complete. Current index: SearchRequest
2016-12-01 21:25:09,963 SharedEntityIndexer:thread-7 INFO admin 1213x277x1 1o8tbeo 127.0.0.1 /secure/admin/XmlRestore.jspa [c.a.j.bc.dataimport.DefaultDataImportService] Re-indexing is 99% complete. Current index: SearchRequest
2016-12-01 21:25:24,814 JiraImportTaskExecutionThread-1 INFO admin 1213x277x1 1o8tbeo 127.0.0.1 /secure/admin/XmlRestore.jspa [c.a.j.bc.dataimport.DefaultDataImportService] Re-indexing is 99% complete. Current index: PortalPage
2016-12-01 21:25:34,626 SharedEntityIndexer:thread-4 INFO admin 1213x277x1 1o8tbeo 127.0.0.1 /secure/admin/XmlRestore.jspa [c.a.j.bc.dataimport.DefaultDataImportService] Re-indexing is 100% complete. Current index: PortalPage
2016-12-01 21:25:46,857 JiraImportTaskExecutionThread-1 INFO      [c.a.j.c.embedded.ofbiz.IndexedUserDao] Reindex all users took: 305,6 ms
2016-12-01 21:25:46,872 JiraImportTaskExecutionThread-1 DEBUG      [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] getService bundle [com.atlassian.jira.plugins.webhooks.jira-webhooks-plugin]
2016-12-01 21:25:46,872 JiraImportTaskExecutionThread-1 INFO      [c.a.j.mail.settings.MailSetting] Mail setting 'jira.mail.send.disabled' has been set to 'false'
2016-12-01 21:25:46,903 JiraImportTaskExecutionThread-1 INFO      [c.a.jira.application.ApplicationConfigurationHelper] Application already configured for jira-software.
2016-12-01 21:25:46,997 JiraImportTaskExecutionThread-1 WARN      [c.a.j.p.d.dao.impl.CachingOrganizationDaoImpl] onImportCompleted - clearing cache !!
2016-12-01 21:25:47,028 JiraImportTaskExecutionThread-1 INFO      [c.a.j.bc.dataimport.DefaultDataImportService] Importing data is 100% complete...
2016-12-01 21:25:47,028 JiraImportTaskExecutionThread-1 INFO      [c.a.j.bc.dataimport.DefaultDataImportService] JIRA Data Import has finished.
2016-12-01 21:25:47,325 Caesium-2-3 INFO      [c.a.crowd.directory.DbCachingRemoteDirectory] FULL synchronisation for directory [ 10000 ] starting

I am assuming that when I restart the service though, it will do this re-index (though with the jar files in the plugins it will index those too). However I still will have to wait before I can configure other things.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

128 views 0 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you