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

Rebalance doesn't store data into cache store

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 5.2.7.Final, 5.3.0.Final
    • 5.2.4.Final, 5.2.5.Final, 5.2.6.Final, 5.3.0.CR1
    • Core

      In DistCacheStoreInterceptor.skip():

         private boolean skip(InvocationContext ctx, Object key, FlagAffectedCommand command) {
            return skip(ctx, command) || skipKey(key) || (isUsingLockDelegation && !cdl.localNodeIsPrimaryOwner(key) && (!cdl.localNodeIsOwner(key) || ctx.isOriginLocal()));
         }
      

      The 3rd condition returns true on rebalance, so the data is not stored in the cache store.

      • The caller is org.infinispan.statetransfer.StateConsumerImpl.doApplyState
      • The iic is org.infinispan.context.SingleKeyNonTxInvocationContext
      • The example command is:
        PutKeyValueCommand{key=ByteArrayKey{data=ByteArray{size=9, hashCode=cb62ce78, array=0x033e06666f6f3839..}}, value=CacheValue{data=ByteArray{size=6, array=0x033e03626172..}, version=4294968192}, flags=[CACHE_MODE_LOCAL, SKIP_REMOTE_LOOKUP, PUT_FOR_STATE_TRANSFER, SKIP_SHARED_CACHE_STORE, SKIP_OWNERSHIP_CHECK, IGNORE_RETURN_VALUES, SKIP_XSITE_BACKUP], putIfAbsent=false, lifespanMillis=-1, maxIdleTimeMillis=-1, successful=true}
        

            dberinde@redhat.com Dan Berindei (Inactive)
            rhn-support-tkimura Takayoshi Kimura
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: