Hi All!
I have few troubles using Cache in CacheMode.REPLICATED (Ignite 2.4.0). Problem One: 1. Start Ignite N1 with default storage configuration with persistence enabled set to true; 2. Create cache C1 with cache mode = CacheMode.REPLICATED; 3. Create cache C2 with cache mode = CacheMode.REPLICATED; 4. Start Ignite N2 (same as N1); 5. Get C1 C2 on N2; 6. Lock L1 on N1 on C1; Successfully read data from C1 on N1; Unlock L1 on N1; 7. Lock L1 on N2 on C1; Successfully read data from C1 on N2; Unlock L1 on N2; 8. kill -9 N1; 9. Lock L1 on N2; Get exception on N2: javax.cache.CacheException: Failed to lock keys (all partition nodes left the grid). at org.apache.ignite.internal.processors.cache.CacheLockImpl.lock(CacheLockImpl.java:79) 10. Put data into C2 on N2; Get exception on N2: org.apache.ignite.cache.CacheServerNotFoundException: Failed to map keys to nodes (partition is not mapped to any node) Problem Two: 11. Stop N2; 12. Try to start N2; Get exception: Apr 12, 2018 1:34:29 PM org.apache.ignite.logger.java.JavaLogger error SEVERE: <C2> Failed to rollback transaction (cache may contain stale locks): GridNearTxLocal [mappings=IgniteTxMappingsSingleImpl [mapping=null], nearLocallyMapped=false, colocatedLocallyMapped=false, needCheckBackup=null, hasRemoteLocks=false, trackTimeout=false, thread=main, mappings=IgniteTxMappingsSingleImpl [mapping=null], super=GridDhtTxLocalAdapter [nearOnOriginatingNode=false, nearNodes=[], dhtNodes=[], explicitLock=false, super=IgniteTxLocalAdapter [completedBase=null, sndTransformedVals=false, depEnabled=false, txState=IgniteTxImplicitSingleStateImpl [init=true, recovery=false], super=IgniteTxAdapter [xidVer=GridCacheVersion [topVer=135009268, order=1523529267021, nodeOrder=1], writeVer=null, implicit=true, loc=true, threadId=1, startTime=1523529269496, nodeId=09ce651b-55bc-4863-a1f7-6bcf0ac75ed1, startVer=GridCacheVersion [topVer=135009268, order=1523529267021, nodeOrder=1], endVer=null, isolation=READ_COMMITTED, concurrency=OPTIMISTIC, timeout=0, sysInvalidate=false, sys=false, plc=2, commitVer=null, finalizing=NONE, invalidParts=null, state=ROLLED_BACK, timedOut=false, topVer=AffinityTopologyVersion [topVer=1, minorTopVer=1], duration=139ms, onePhaseCommit=false], size=1]]] class org.apache.ignite.IgniteCheckedException: Failed to commit transaction: GridNearTxLocal[id=d47bb69b261-00000000-080c-13f4-0000-000000000001, concurrency=OPTIMISTIC, isolation=READ_COMMITTED, state=ROLLED_BACK, invalidate=false, rollbackOnly=true, nodeId=09ce651b-55bc-4863-a1f7-6bcf0ac75ed1, duration=139] 13. Succ start N2 only after rm –rf Ignite db or after start N1. Please, help me to find a mistake and explain how to fix it. Thanks, Roman -- Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/ |
Free forum by Nabble | Edit this page |