Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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)

.  

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Data Center

Introducing Data Center Community licenses

I'm Alison Huselid, Head of Product for Data Center at Atlassian. As we shared in our last post, we’ve been working on a solution for those of you who work for charitable non-profit organizations tha...

3,412 views 24 82
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you