Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22746

(7.4.z) WFLY-15677 - Disable simple cache optimization when statistics are enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.4.4.CR1, 7.4.4.GA
    • 7.4.1.CR1
    • Clustering
    • None
    • False
    • False
    • +
    • Workaround Exists
    • Hide

      To ensure that Infinispan statistics are collected for hibernate 2LC, configure the relevant cache configurations with transaction enabled. This will trick the Infinispan subsystem into disabling the simple cache optimization - and Infinispan's 2LC implementation will auto-disable transactions anyway.

      Show
      To ensure that Infinispan statistics are collected for hibernate 2LC, configure the relevant cache configurations with transaction enabled. This will trick the Infinispan subsystem into disabling the simple cache optimization - and Infinispan's 2LC implementation will auto-disable transactions anyway.

    Description

      Currently, EAP auto-enables the simple cache optimization if a given cache meets all of the following criteria:

      • LOCAL
      • on-heap
      • non-transactional
      • non-persistent/passivating

      However, since statistics collection requires an interceptor stack, if the simple cache is enabled, Infinispan will be unable to collect statistics.

      Attachments

        Issue Links

          Activity

            People

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: