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

Null value read with RR can be replaced by cache loader value

XMLWordPrintable

      Currently the CacheLoaderInterceptor does the following check to determine if it should check the loader for a value

      if (e == null || e.isNull() || e.getValue() == null) {
      

      Unfortunately this means it checks the loader when a null value is in the entry when using RR. This can cause an issue if another transaction commits that key and puts a value that results in that value being inserted into the loader.

      This also is a performance issue for RR, since it has to check the loader over and over for a given key even if it was found null the first time.

      Initial thought is to do something like setSkipRemoteGet and that could actually be used for a dual purpose possibly.

            wburns@redhat.com Will Burns
            wburns@redhat.com Will Burns
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: