Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9443

Fail when single region is accessed with multiple strategies

    Details

    • Type: Enhancement
    • Status: New (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 9.3.1.Final
    • Fix Version/s: None
    • Component/s: Hibernate Cache
    • Labels:
      None

      Description

      When we have two entities that share the same region but use different access strategies the Hibernate boot should fail. Right now there's an assertion in DomainDataRegionImpl.prepareFor* but this does not give much explanation and does not fail when assertions are disabled which leads to cryptic errors later on.

      Example:

      @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "item")
      public static class NonStrictReadWriteVersionedCacheableItem { ... }
      
      @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "item")
      public static class ReadWriteVersionedCacheableItem { ... }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rvansa Radim Vansa
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: