The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Re indexing an issue - is it necessary to call the release method

Tasneem Bhyat
September 28, 2020

Hi there

 

With JIRA Data Center (8.5.4) running on multiple nodes, I have the following code which runs fine on Data Center single node (8.5.4.). On multi node, it runs, but on occasion throws an exception at the release method.

this is the code, I have made the line where the exception is thrown , in bold. Can someone please advise...I have pasted part of the stacktrace below

 

boolean isIndexIssues = ImportUtils.isIndexIssues();
boolean isHeld = issueIndexManager.isHeld();
try {
if (!isIndexIssues)
ImportUtils.setIndexIssues(true);

if (isHeld)
issueIndexManager.release();

issueIndexManager.reIndex(issue);
} catch (IndexException e) {
log.warn("Unable to reindex issue: {}", issue.getKey());
} finally {
if (isHeld)
issueIndexManager.hold();

ImportUtils.setIndexIssues(isIndexIssues);
}





Caused by: org.postgresql.util.PSQLException: ERROR: canceling statement due to user request
Where: while updating tuple (17400,88) in relation "AO_60DB71_LEXORANK"
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2468)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2211)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:309)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:446)

.  

1 comment

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

Gonchik Tsymzhitov
Community Champion
December 8, 2023

Hi @Tasneem Bhyat , 

sorry for refer to old post, did find any solution?

Tasneem Bhyat
July 26, 2024

Hi @Gonchik Tsymzhitov , no I have not, unfortunately.

 

Would welcome it if you found any solution :)

TAGS
AUG Leaders

Atlassian Community Events