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

RemoteCacheManager.getCache may ignore the forceReturnValue flag

    XMLWordPrintable

    Details

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                galder.zamarreno Galder ZamarreƱo
                Reporter:
                rvansa Radim Vansa
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: