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

(7.1.z) HHH-12508 HHH-12520 Bugs related to second-level/query cache not enabled

    Details

      Description

      https://hibernate.atlassian.net/browse/HHH-12508
      https://hibernate.atlassian.net/browse/HHH-12520

      HHH-12508 is not a regression, but can cause SessionFactoryOptions#isSecondLevelCacheEnabled to return true when the second-level cache is actually disabled. Hibernate relies on the correct return value when determining if second-level cache functionality is available.

      HHH-12520 is a regression introduced by HHH-10418. CacheImpl#getSecondLevelCacheRegion can cause NullPointerExceptions when the query cache is disabled.

      The test case included for HHH-12508 is for both issues.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gbadner Gail Badner
                  Reporter:
                  gbadner Gail Badner
                  Tester:
                  Jiří Bílek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: