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

Fail when single region is accessed with multiple strategies

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 9.3.1.Final
    • Hibernate Cache
    • 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 { ... }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rvansa1@redhat.com Radim Vansa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: