Rebuilding Index or bulk editing while Cloning or performing other tasks crashes both tasks

XMLWordPrintable

    • 25
    • Severity 3 - Minor
    • 0

      Summary

      Re-building Index or doing a bulk edit operation while 'Clone Issue' task is in progress causes both tasks to fail.

      Steps to Reproduce

      Case 1

      • Clone an issue
      • Immediately after you click on the 'Clone Issue', Go to System ->  Indexing > Background Reindex -> Reindex

      Case 2

      • Do a JQL search and bulk edit the results
      • While the bulk edit is ongoing, clone an issue

      Expected Results

      Both tasks complete normally.

      Actual Results

      Both tasks fail.

      Error displayed when indexing:  "The task context is not of the expected type. Expected 'com.atlassian.jira.config.IndexTaskContext' but got 'com.atlassian.jira.bc.issue.clone.CloneIssueTaskManagerImpl$CloneIssueTaskContext'"

      Error displayed when bulk editing:  "The task context is not of the expected type. Expected 'com.atlassian.jira.bulkedit.operation.BulkEditTaskContext' but got 'com.atlassian.jira.bc.issue.clone.CloneIssueTaskManagerImpl$CloneIssueTaskContext'"

      The below exception is thrown:

      java.lang.NullPointerException at com.atlassian.jira.bc.issue.clone.CloneIssueTaskManagerImpl$CloneIssueTaskProgress.getStatus(CloneIssueTaskManagerImpl.java:187) [classes/:?] at com.atlassian.jira.web.action.issue.CloneIssueDetails.doProgress(CloneIssueDetails.java:254) [classes/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_77] at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) [webwork-1.4-atlassian-30.jar:?] at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) [webwork-1.4-atlassian-30.jar:?] at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:438) [webwork-1.4-atlassian-30.jar:?] at webwork.action.ActionSupport.execute(ActionSupport.java:157) [webwork-1.4-atlassian-30.jar:?] at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:67) [jira-api-1000.1010.2.jar:?] at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) [webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) [webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) [webwork-1.4-atlassian-30.jar:?] at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) [webwork-1.4-atlassian-30.jar:?] at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:225) [webwork-1.4-atlassian-30.jar:?] at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:154) [webwork-1.4-atlassian-30.jar:?] at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:143) [classes/:?]
      

      This can also happen when other Long running tasks are triggered in the process, like:

      • Bulk operations
      • Update Workflow
      • CSV Export
      • Bulk clone issues

            Assignee:
            Unassigned
            Reporter:
            Lucas Lara Martins
            Votes:
            4 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: