Forums

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

Doubt about Insights

João Bispo dos Santos Filho
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!
October 15, 2021

Hi 

Have Jira software Installed in my 1 production and 1 development environment I would like to know how to import production Insights into the development environment. When I try to do it through the normal step-by-step (Object Schema Import) I get the message 

" Insight batch process(es) in progress. Is aware that update, disable or uninstall the Insight can cause data inconsistency. Please wait until the processes are completed before making modifications to the Insight. "

 

Resource: insight-reindex (reindex), Description: Insight Reindex, Percentage: 0%

 

And do not get out of this can help me.

Awaiting

João Bispo 

 

1 answer

0 votes
Babu R September 8, 2022

If i'm not wrong, this is due to Insight Indexing during every restart of Jira.

Insight batch process(es) are running. Be aware that upgradingdisabling or uninstalling Insight may cause data inconsistency please wait until the process(es) are completed before performing any of these changes to Insight. 
Resource: freetext-reindex (freetext), Description: Re-index, Percent: 30%

On Jira shutdown Insight persists the index on disk for faster startup. In large instances, the index file fails to be saved on disk in time before the force shutdown command is sent. This will cause Insight to do a database reindex on each startup. To prevent this change, you need to change the timeout on force shutdown in the stop-jira script.

Change the value 20 (the unit is seconds) to a value that is more reasonable based on the amount of data in your installation. Below is a snippet from the standard Jira stop-jira.sh and it is the value 20 that should be changed at two places.

if [ -z "$JIRA_USER" ] || [ $(id -un) == "$JIRA_USER" ]; then
    echo executing as current user
  
    exec $PRGDIR/shutdown.sh 20 -force $@
  
elif [ $UID -ne 0 ]; then
  
    echo JIRA has been installed to run as $JIRA_USER so please sudo run this to enable switching to that user
    exit 1
  
else
  
    echo executing using dedicated user
    if [ -x "/sbin/runuser" ]; then
        sucmd="/sbin/runuser"
    else
        sucmd="su"
    fi
    $sucmd -m $JIRA_USER -c "$PRGDIR/shutdown.sh 20 -force $@"
  
fi

 

David Harkins
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.
January 14, 2023

Having this checked out on our install, see if it makes an improvement :-)

Suggest an answer

Log in or Sign up to answer