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

Logs of usage of RequestCache without context from the com.atlassian.jira.cache.request.RequestCacheRecorderImpl package in the logs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a bug
    • High
    • None
    • 8.12.1, 8.12.2, 8.13.0, 8.12.3, 8.13.1, 8.13.9, 8.13.10, 8.20.0, 8.20.8
    • Data Center - Other
    • None

    Description

      Issue Summary

      Similar to JRASERVER-71310, but this is coming from another package – com.atlassian.jira.cache.request.RequestCacheRecorderImpl.

      Steps to Reproduce

      1. Install Jira. Issue observed in Jira 8.13.9, 8.13.10 and 8.20.0 so far.
      2. Below warnings are thrown in the atlassian-jira.log file:
        2021-10-28 10:35:09,226+1100 localhost-startStop-2 WARN      [c.a.j.cache.request.RequestCacheRecorderImpl] Invalid use of RequestCache by thread: <thread_name>.Incorrect usage of JIRA API. You can only create/use: RequestCacheImpl inside a context (request or Jira-Thread-Local). Check: JiraThreadLocalUtil for details. This message will be logged once per thread.
        

      Workaround

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

      This configuration will filter out relevant warnings as well.

      Temporarily set the package to ERROR (this won't persist 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.RequestCacheRecorderImpl 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.RequestCacheRecorderImpl = ERROR, filelog
        log4j.additivity.com.atlassian.jira.cache.request.RequestCacheRecorderImpl = false
        

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              0583e4ef94d1 Samuel Ng
              Votes:
              14 Vote for this issue
              Watchers:
              35 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: