Uploaded image for project: 'Migration Platform'
  1. Migration Platform
  2. MIG-758

Jira Cloud Migration Assistant (JCMA) can fail to be enabled at environments with a large number of user accounts

    • 2
    • Severity 1 - Critical
    • 40

      Issue Summary

      When installing or enabling Jira Cloud Migration Assistant (JCMA) at a Jira instance with a large set of user accounts, it can fail to start due to timeout.

      Steps to Reproduce

      1. Install Jira at any version compatible with JCMA 1.5.7
      2. Populate it with a large number of accounts (e.g 100k+ users)
      3. Install JCMA 1.5.7

      Expected Results

      JCMA 1.5.7 will be enabled successfully before the default plugin timeout (300 seconds).

      Actual Results

      JCMA fails to be enabled due to timeout.

      When generating thread dumps while JCMA is being enabled, a long running thread with the following pattern can be identified:

      "ThreadPoolAsyncTaskExecutor::Thread 7" #393 prio=5 os_prio=0 tid=0x00007f6b2ebd6000 nid=0xdd197 runnable [0x00007f665d837000]
         java.lang.Thread.State: RUNNABLE
          at java.net.SocketInputStream.socketRead0(Native Method)
        ...
          at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:114)
        ...
          at com.atlassian.jira.migration.serverdataextractors.usergroup.JiraDirectoryService.fetchUsersWithAttributes(JiraDirectoryService.kt:69)
        ...
          at com.atlassian.jira.migration.email.NewEmailSuggestingService.buildDomainNameMap(NewEmailSuggestingService.kt:72)
      

      Workaround

      • Reduce the number of user accounts on Jira. As a recommended approach, this KB article can be used to identify accounts that are not needed anymore, so they can be deleted if possible.
      • Try increasing the plugin timeout on Jira. The default timeout value is 300 seconds, so users can modify atlassian.plugins.enable.wait to a larger value (e.g. 600 seconds) to enable JCMA in this situation.

            [MIG-758] Jira Cloud Migration Assistant (JCMA) can fail to be enabled at environments with a large number of user accounts

            Owen made changes -
            Workflow Original: JAC Bug Workflow v3 [ 4190294 ] New: Mig Bug Workflow v3 [ 4527738 ]
            Dilan Weerasinghe made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 582847 ]
            Dilan Weerasinghe made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Gathering Impact [ 12072 ] New: Closed [ 6 ]

            We have included the the fix in JCMA release 1.5.8   on  17 Aug 2021.

            Dilan Weerasinghe added a comment - We have included the the fix in JCMA release 1.5.8   on  17 Aug 2021.
            Dilan Weerasinghe made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 573436 ]
            Dilan Weerasinghe made changes -
            Assignee New: Dilan Weerasinghe [ dweerasinghe@atlassian.com ]
            Sergey made changes -
            Symptom Severity Original: Severity 2 - Major [ 14431 ] New: Severity 1 - Critical [ 14430 ]
            David Almeida made changes -
            Component/s New: Jira - Migration Assistant [ 60091 ]
            Component/s Original: Apps - Migration Assistant [ 61390 ]
            Rodrigo Rosa made changes -
            Component/s New: Apps - Migration Assistant [ 61390 ]
            Component/s Original: Migration - Server to Cloud [ 43413 ]
            Introduced in Version Original: 8.13
            Key Original: JRASERVER-72680 New: MIG-758
            Symptom Severity Original: Severity 3 - Minor [ 15832 ] New: Severity 2 - Major [ 14431 ]
            Affects Version/s Original: 8.13.8 [ 95099 ]
            Project Original: Jira Server and Data Center [ 10240 ] New: Migration Platform [ 19710 ]
            Kamil Bar made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]

              dweerasinghe@atlassian.com Dilan Weerasinghe
              rrosa@atlassian.com Rodrigo Rosa
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: