Issue Summary

      There's warnings being triggered on the latest JSD version due to the `RequestCacheImpl` being used outside of a request thread by the `SdSerialisedOffThreadProcessor`. This will not work in the future, so we need to fix it.

      Steps to Reproduce

      1. Install JSD v4.9.1

      The below exception is thrown in the atlassian-jira.log file:

      SdSerialisedOffThreadProcessor:thread-4 WARN [c.a.j.cache.request.RequestCacheImpl] Incorrect usage of JIRA API. You can only create/use: RequestCacheImpl inside a context (request or Jira-Thread-Local). Check: JiraThreadLocalUtil for details.
      

      Workaround

      Setting the log level of the com.atlassian.jira.cache.request.RequestCacheImpl package to ERROR per the documentation Logging and profiling

      This configuration will filter out relevant warnings as well.

      Temporary way to set the package to ERROR (this setting will go away after a Jira restart)

      • In Jira, go to âš™ > System > Logging and profiling page
      • Scroll down to Default Loggers > Configure logging level for another package, and add com.atlassian.jira.cache.request.RequestCacheImpl package with the ERROR level

      Permanent way to set the package to ERROR (this setting will remain after a Jira restart)

      • Edit the file <JIRA_INSTALLATION>/atlassian-jira/WEB-INF/classes/log4j.properties
      • Add the 2 following lines at the end of the file and save it:
        log4j.logger.com.atlassian.jira.cache.request.RequestCacheImpl = ERROR, filelog
        log4j.additivity.com.atlassian.jira.cache.request.RequestCacheImpl = false
        
      • Restart the Jira application

          Form Name

            [JSDSERVER-6897] RequestCache being used in an invalid context

            Aqqiela made changes -
            Remote Link Original: This issue links to "JSDS-6523 (JIRA Server (Bulldog))" [ 490040 ] New: This issue links to "JSMDC-6523 (JIRA Server (Bulldog))" [ 490040 ]
            Maciej Swinarski (Inactive) made changes -
            Labels Original: jr-813 warranty New: jira-threadlocal-context jr-813 warranty
            Steven de Groot made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 597781 ]
            Alex Cooksey made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 563381 ]
            Alex Cooksey made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 563381 ]
            Julien Rey made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 560977 ]
            Julien Rey made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 560977 ]
            Alex Cooksey made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 556421 ]
            Steven de Groot made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 530519 ]
            Said made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 524371 ]

              kkanojia Kunal Kanojia
              sdegroot@atlassian.com Steven de Groot
              Affected customers:
              50 This affects my team
              Watchers:
              69 Start watching this issue

                Created:
                Updated:
                Resolved: