What happens if I interrupt JIRA's locked re-indexing by restarting services?

Tayyab Bashir Community Champion Aug 07, 2017

Hi, 

I haven't ran into any problems regarding this yet, but I was just wondering what would happen if I interrupted JIRA's re-indexing by restarting the services or shutting services down? 

Indexing is related to issues, so even if it does get interrupted the issues would remain the same? So I can't seem to understand what might be the adverse consequenses? 

And another question related to this: 
How can one stop JIRA's locked re-indexing? Since there's no option to cancel re-indexing, could I stop it by restarting jira's services?

1 answer

1 accepted

2 votes

Short answer is that you will get a completely broken index, and you will need to re-index the system in full again.

A little more detail:

Imagine the process as "throw away the index, then read each issue from the database in turn and build an index record for it". 

If you shut the service down, it will finish the issue it is currently doing and stop.  You will end up with some issues indexed and others not.

If you kill it from the outside, you don't give it a chance to shut down cleanly, so you could get a corrupted index record as well as the partial index.  If you're using a HSQL or H2 database, this can (rarely) render your JIRA unusable (but you shouldn't be using them for production systems).  With real databases, the worst case is a few garbled index entries on top of the issues you've not indexed.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

243 views 1 18
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