Hi Ilya,
Thanks for your reply.
My code as below. Please suggest me either this error due to Ignite
upgradation or with code
using (var transact =
 ICache.Ignite.GetTransactions().TxStart(TransactionConcurrency.Pessimistic,
TransactionIsolation.RepeatableRead, TimeSpan.FromMilliseconds(7000), 0))
{
int _countIgnite =1;
while (_countIgnite <= 3)
{
if (ICache?.ContainsKey(_key) == true)
{
var cacheObj= ICache.Get(_key);
if (obj== null)
{
_countIgnite++;
Thread.Sleep(100);
continue;
}
else { break; }
} else { break; }
}

cacheObj.SerialNo= cacheObj.SerialNo + 1
ICache.Put("CacheModel:" _key, cacheObj)
cacheObj = ICache.Get(_key);   // for confirmation
}

Regards,
Charlin


On Fri, 8 Nov 2024 at 02:45, Ilya Shishkov <shishkovi...@gmail.com> wrote:

> Hi Charlin,
>
> As far as I know, transactions have no timeout by default.
> Did you set any transaction timeout in server configuration or in your
> code?
>
> Regards,
> Ilya
>
> чт, 7 нояб. 2024 г. в 13:05, Charlin S <charli...@hotelhub.com>:
> >
> > Hi All,
> >
> > I have planned to upgrade the Ignite version from 2.10 to 2.16 and saw
> this error committing a transaction while testing functionality . We have
> never seen this with earlier versions. Do I need to go for a production
> rollout with Ignite 2.16? Please suggest. I am not sure whether this error
> is due to Ignite upgradation or not as not seen previously.
> >
> > Failed to commit transaction, transaction is concurrently rolled back on
> timeout: GridNearTxLocal [mappings=IgniteTxMappingsImpl [],
> nearLocallyMapped=false, colocatedLocallyMapped=false,
> needCheckBackup=null, hasRemoteLocks=true, trackTimeout=true,
> sysTime=38784900, sysStartTime=854504299174200, prepareStartTime=0,
> prepareTime=0, commitOrRollbackStartTime=854501394752700,
> commitOrRollbackTime=4955000, lb=null, mvccOp=null, qryId=-1, crdVer=0,
> thread=Thread-95, mappings=IgniteTxMappingsImpl [],
> super=GridDhtTxLocalAdapter [nearOnOriginatingNode=false,
> nearNodes=KeySetView [], dhtNodes=KeySetView [], explicitLock=false,
> super=IgniteTxLocalAdapter [doneFlag=1, completedBase=null, commitErr=null,
> depEnabled=false, txState=IgniteTxStateImpl [activeCacheIds=[-1059113820],
> recovery=false, mvccEnabled=false, mvccCachingCacheIds=[], txMap=ArrayList
> [IgniteTxEntry [txKey=IgniteTxKey [key=KeyCacheObjectImpl [part=254,
> val=.....
> >
> > Regards,
> > Charlin
> >
>

Reply via email to