Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
None
-
None
-
XRAY-4.0.0 Sprint 7 Red, XRAY-4.0.0 Sprint 8 Red
-
Description
When executing the migration tool we get this exception:
java.util.concurrent.CompletionException: java.lang.IllegalStateException: Incorrect usage of JIRA/lucene search API. You can only create/use: ManagedIndexSearcher inside a context (request or Jira-Thread-Local). Check: JiraThreadLocalUtils for details.
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
(...)
This is happens on Jira8. May be caused by the fact that we use Lucene to get some information but the whole migration process is executed in a parallel thread, for instance the total of Zephyr tests to migrate. The JQL search seems to have problems when running in parallel threads. Some search let me find three solutions: