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

As an JIRA Administrator for JIRA Datacenter I want to log CachedReferences flush events

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Problem Definition

      Follow-up from JRASERVER-62707 regarding CachedReferences

      Suggested Solution

      Add INFO logging event for cache reset event and additional DEBUG logging with stackrace to track source the flush event.

      Implemented solution

      • In fixed JIRA version, there is a logging for cache reset events for CachedReferences (same as for JRASERVER-62707):
      • Please note that this logging has no performance impact.
      • How to enable logging for cache flush events:
        1. Navigate to Cog Icon > System > Logging and profiling
        2. Find com.atlassian.cache.event and set it to INFO level

          Form Name

            [JRASERVER-66031] As an JIRA Administrator for JIRA Datacenter I want to log CachedReferences flush events

            from vfontes

            enabling debug for both com.atlassian.cache.event and net.sf.ehcache.distribution we can get:
            send node:

            2020-01-23 16:31:21,095 http-nio-8080-exec-25 INFO admin 1051x159x1 n40wc2 192.168.101.1 /secure/admin/AddIssueType.jspa [c.a.c.e.c.a.j.config.DefaultConstantsManager.issueTypeCache] Cache com.atlassian.jira.config.DefaultConstantsManager.issueTypeCache was flushed
            

            receiving node:

            2020-01-23 16:31:21,074 RMI TCP Connection(17)-192.168.101.131 DEBUG      [n.s.ehcache.distribution.RMICachePeer] RMICachePeer for cache com.atlassian.jira.config.DefaultConstantsManager.issueTypeCache: remote remove received for key: com.atlassian.cache.impl.ReferenceKey@0
            

            Andriy Yakovlev [Atlassian] added a comment - from vfontes enabling debug for both com.atlassian.cache.event and net.sf.ehcache.distribution we can get: send node: 2020-01-23 16:31:21,095 http-nio-8080-exec-25 INFO admin 1051x159x1 n40wc2 192.168.101.1 /secure/admin/AddIssueType.jspa [c.a.c.e.c.a.j.config.DefaultConstantsManager.issueTypeCache] Cache com.atlassian.jira.config.DefaultConstantsManager.issueTypeCache was flushed receiving node: 2020-01-23 16:31:21,074 RMI TCP Connection(17)-192.168.101.131 DEBUG [n.s.ehcache.distribution.RMICachePeer] RMICachePeer for cache com.atlassian.jira.config.DefaultConstantsManager.issueTypeCache: remote remove received for key: com.atlassian.cache.impl.ReferenceKey@0

              izinoviev Ilya Zinoviev (Inactive)
              ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: