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

RemoteCacheManager.getCache may ignore the forceReturnValue flag

XMLWordPrintable

      RemoteCacheManager manager = ...;
      Cache noReturnCache = manager.getCache("foo", false);
      Cache returnValueCache = manager.getCache("foo", true);
      

      The second returned cache will use forceReturnValue=false, although it was retrieved with forceReturnValue=true. The reason is that caches are stored in a map by name, ignoring this flag.

      There should be two such maps. The question is what should getCache("foo") return if previously only getCache("foo", true) was called.

              rh-ee-galder Galder ZamarreƱo
              rvansa1@redhat.com Radim Vansa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: