Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between re-index and restart of JIRA server

Katherine tk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 10, 2018

After making direct database changes, under what circumstances does one need to re-index JIRA and under what circumstances does JIRA need to be restarted?

I made some direct changes to the JIRA database, but I had to restart the JIRA server before I could see those changes in JIRA. Why did the JIRA re-index not help in this scenario?

1 answer

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 10, 2018

Generally, making database changes is absolutely the wrong thing to do.  You should never touch a Jira database unless you are fixing something, and you are 100% sure you understand what you are doing.  The fact you are asking this question tells me that you do not understand.

Anyway, to answer the actual question:  Jira caches and indexes things.  You must never write to a running Jira database because both of those things can scrub your changes, corrupt your data and leave you with an unusable Jira.

If you must make SQL changes, then

Always stop Jira.  No question of this, even tricks that flush caches fail a lot.  Always, always, always stop Jira.

For indexing: you need to understand what is indexed in order to decide whether to re-index afterwards (if you've touched an issue, project, user or scheme, you should always re-index.  Other stuff - there's a 90% chance you need to), but the general rule is "if in doubt, do a full, locking re-index".

Always back up the database, and prove that the backup is restore-able before running the SQL and restarting

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events