Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-22396

Issues are not created for some email messages due to thread visibility problems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 4.2
    • 3.13.1, 3.13.2, 3.13.3, 3.13.4, 3.13.5, 4.0, 4.0.1, 4.0.2, 4.1, 4.1.1, 4.1.2
    • None

      Customers have reported situations in which issues are not being created for some incoming email. The log contains the following message, even though the service has been configured correctly:

      [CreateIssueHandler] Cannot handle message as destination project is null.
      

      This is most likely a thread visibility problem, since the CreateIssueHandler contains mutable data that is accessed in a non-threadsafe way (e.g. the project key). The fields are normally set in the handler's init(Map), which is called after the object has been published by the AbstractMessageHandlingService.

      This should be fixed by employing a safe publication idiom in the AbstractMessageHandlingService:

      • only publish the reference to the handler after calling init
      • publish the reference using a volatile field, AtomicReference, or equivalent technique

              lmiranda Luis Miranda (Inactive)
              lmiranda Luis Miranda (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: