Hello!

You can set concurrency mode and isolation for transactions by default by
specifying them in TransactionConfiguration. Otherwise you are correct.

Regards,
-- 
Ilya Kasnacheev


пн, 23 нояб. 2020 г. в 14:49, 38797715 <38797...@qq.com>:

> Hi Ilya,
>
> Then confirm again that according to the log message, optimistic
> transaction and READ_COMMITTED are used for single data operation of
> transactional cache?
>
> If transactions are explicitly turned on, the default concurrency model
> and isolation level are pessimistic and REPEATABLE_READ?
> 在 2020/11/20 下午7:50, Ilya Kasnacheev 写道:
>
> Hello!
>
> It will happen when the node has left but the transaction has to be
> committed.
>
> Most operations on transactional cache will involve implicit transactions
> so there you go.
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> чт, 19 нояб. 2020 г. в 16:46, 38797715 <38797...@qq.com>:
>
>> Hi community,
>>
>> Although there is a transactional cache, no transaction operation is
>> performed, but there is a lot of output below in the log. Why?
>>
>> [2020-11-16 14:01:44,947][INFO ][sys-stripe-8-#9][IgniteTxManager]
>> Checking optimistic transaction state on remote nodes [tx=GridDhtTxLocal
>> [nearNodeId=a7eded9b-4078-4ee5-a1dd-426b8debc203,
>> nearFutId=e0576afd571-dbd82c53-1772-4c53-a4ea-38e601002379,
>> nearMiniId=1, nearFinFutId=null, nearFinMiniId=0,
>> nearXidVer=GridCacheVersion [topVer=216485010, order=1607062821327,
>> nodeOrder=30], lb=null, super=GridDhtTxLocalAdapter
>> [nearOnOriginatingNode=false, nearNodes=KeySetView [],
>> dhtNodes=KeySetView [e4d4fc27-d2d9-47f9-8d21-dfac2c003b55,
>> 3060fc02-e94a-4b6d-851a-05d75ea751e0], explicitLock=false,
>> super=IgniteTxLocalAdapter [completedBase=null,
>> sndTransformedVals=false, depEnabled=false,
>> txState=IgniteTxImplicitSingleStateImpl [init=true, recovery=false,
>> useMvccCaching=false], super=IgniteTxAdapter [xidVer=GridCacheVersion
>> [topVer=216485010, order=1607062856849, nodeOrder=1],
>> writeVer=GridCacheVersion [topVer=216485023, order=1607062856850,
>> nodeOrder=1], implicit=true, loc=true, threadId=24070,
>> startTime=1605506134277, nodeId=2b0db4f4-86d1-42c2-babf-f6318bd932e5,
>> startVer=GridCacheVersion [topVer=216485010, order=1607062856849,
>> nodeOrder=1], endVer=null, isolation=READ_COMMITTED,
>> concurrency=OPTIMISTIC, timeout=0, sysInvalidate=false, sys=false,
>> plc=2, commitVer=null, finalizing=RECOVERY_FINISH, invalidParts=null,
>> state=PREPARED, timedOut=false, topVer=AffinityTopologyVersion
>> [topVer=117, minorTopVer=0], mvccSnapshot=null, skipCompletedVers=false,
>> parentTx=null, duration=370668ms, onePhaseCommit=false], size=1]]],
>> fut=GridCacheTxRecoveryFuture [trackable=true,
>> futId=81c3b7af571-1093b7fe-20ae-4c3f-9adb-4ecac23c136e,
>> tx=GridDhtTxLocal [nearNodeId=a7eded9b-4078-4ee5-a1dd-426b8debc203,
>> nearFutId=e0576afd571-dbd82c53-1772-4c53-a4ea-38e601002379,
>> nearMiniId=1, nearFinFutId=null, nearFinMiniId=0,
>> nearXidVer=GridCacheVersion [topVer=216485010, order=1607062821327,
>> nodeOrder=30], lb=null, super=GridDhtTxLocalAdapter
>> [nearOnOriginatingNode=false, nearNodes=KeySetView [],
>> dhtNodes=KeySetView [e4d4fc27-d2d9-47f9-8d21-dfac2c003b55,
>> 3060fc02-e94a-4b6d-851a-05d75ea751e0], explicitLock=false,
>> super=IgniteTxLocalAdapter [completedBase=null,
>> sndTransformedVals=false, depEnabled=false,
>> txState=IgniteTxImplicitSingleStateImpl [init=true, recovery=false,
>> useMvccCaching=false], super=IgniteTxAdapter [xidVer=GridCacheVersion
>> [topVer=216485010, order=1607062856849, nodeOrder=1],
>> writeVer=GridCacheVersion [topVer=216485023, order=1607062856850,
>> nodeOrder=1], implicit=true, loc=true, threadId=24070,
>> startTime=1605506134277, nodeId=2b0db4f4-86d1-42c2-babf-f6318bd932e5,
>> startVer=GridCacheVersion [topVer=216485010, order=1607062856849,
>> nodeOrder=1], endVer=null, isolation=READ_COMMITTED,
>> concurrency=OPTIMISTIC, timeout=0, sysInvalidate=false, sys=false,
>> plc=2, commitVer=null, finalizing=RECOVERY_FINISH, invalidParts=null,
>> state=PREPARED, timedOut=false, topVer=AffinityTopologyVersion
>> [topVer=117, minorTopVer=0], mvccSnapshot=null, skipCompletedVers=false,
>> parentTx=null, duration=370668ms, onePhaseCommit=false], size=1]]],
>> failedNodeIds=SingletonSet [a7eded9b-4078-4ee5-a1dd-426b8debc203],
>> nearTxCheck=false, innerFuts=EmptyList [],
>> super=GridCompoundIdentityFuture [super=GridCompoundFuture [rdc=Bool
>> reducer: true, initFlag=0, lsnrCalls=0, done=false, cancelled=false,
>> err=null, futs=EmptyList []]]]]
>> [2020-11-16 14:01:44,947][INFO ][sys-stripe-8-#9][IgniteTxManager]
>> Finishing prepared transaction [commit=true, tx=GridDhtTxLocal
>> [nearNodeId=a7eded9b-4078-4ee5-a1dd-426b8debc203,
>> nearFutId=e0576afd571-dbd82c53-1772-4c53-a4ea-38e601002379,
>> nearMiniId=1, nearFinFutId=null, nearFinMiniId=0,
>> nearXidVer=GridCacheVersion [topVer=216485010, order=1607062821327,
>> nodeOrder=30], lb=null, super=GridDhtTxLocalAdapter
>> [nearOnOriginatingNode=false, nearNodes=KeySetView [],
>> dhtNodes=KeySetView [e4d4fc27-d2d9-47f9-8d21-dfac2c003b55,
>> 3060fc02-e94a-4b6d-851a-05d75ea751e0], explicitLock=false,
>> super=IgniteTxLocalAdapter [completedBase=null,
>> sndTransformedVals=false, depEnabled=false,
>> txState=IgniteTxImplicitSingleStateImpl [init=true, recovery=false,
>> useMvccCaching=false], super=IgniteTxAdapter [xidVer=GridCacheVersion
>> [topVer=216485010, order=1607062856849, nodeOrder=1],
>> writeVer=GridCacheVersion [topVer=216485023, order=1607062856850,
>> nodeOrder=1], implicit=true, loc=true, threadId=24070,
>> startTime=1605506134277, nodeId=2b0db4f4-86d1-42c2-babf-f6318bd932e5,
>> startVer=GridCacheVersion [topVer=216485010, order=1607062856849,
>> nodeOrder=1], endVer=null, isolation=READ_COMMITTED,
>> concurrency=OPTIMISTIC, timeout=0, sysInvalidate=false, sys=false,
>> plc=2, commitVer=null, finalizing=RECOVERY_FINISH, invalidParts=null,
>> state=PREPARED, timedOut=false, topVer=AffinityTopologyVersion
>> [topVer=117, minorTopVer=0], mvccSnapshot=null, skipCompletedVers=false,
>> parentTx=null, duration=370668ms, onePhaseCommit=false], size=1]]]]
>>
>>

Reply via email to