You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Ilya Kasnacheev <il...@gmail.com> on 2020/02/03 13:08:41 UTC

Re: Ignite AtomicLong

Hello!

It uses a cache under the hood.

I don't think it will throw TransactionRollbackException since it operates
on ATOMIC cache.

Regards,
-- 
Ilya Kasnacheev


пт, 31 янв. 2020 г. в 10:37, ashishb888 <as...@gmail.com>:

> How does AtomicLong work?
> Does it throws TransactionRollbackException?
>
> BR,
> Ashish
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Ignite AtomicLong

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

Can you provide logs from all nodes in cluster?

Regards,
-- 
Ilya Kasnacheev


чт, 6 февр. 2020 г. в 09:03, ashishb888 <as...@gmail.com>:

> Yeah, it is hard to say anything on above. What else do you need? Will
> provide you the information.
> Just wanted to understand what happened here.
>
> BR,
> Ashish
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Ignite AtomicLong

Posted by ashishb888 <as...@gmail.com>.
Yeah, it is hard to say anything on above. What else do you need? Will
provide you the information.
Just wanted to understand what happened here.

BR,
Ashish




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite AtomicLong

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

It's hard to say what happens here, AtomicLong definitely did not start
your PESSIMISTIC, REPEATABLE_READ transaction.

More information is needed to be able to understand what's going on here.

Regards,
-- 
Ilya Kasnacheev


ср, 5 февр. 2020 г. в 08:58, ashishb888 <as...@gmail.com>:

> Thank you Ilya. I asked above because I got the below exception:
>
> org.apache.ignite.transactions.TransactionRollbackException: Failed to
> finish transaction because it has been rolled back [timeout=0,
> tx=GridNearTxLocal[xid=dec3274ff61-00000000-0b6f-279c-0000-00000000000a,
> xidVersion=GridCacheVersion [topVer=191834012, order=1580354125037,
> nodeOrder=10], concurrency=PESSIMISTIC, isolation=REPEATABLE_READ,
> state=ACTIVE, invalidate=false, rollbackOnly=false,
> nodeId=51a12a74-856a-443b-95f0-4d52d5278aa4, timeout=0, duration=60251,
> label=null]]
>         at
> org.apache.ignite.internal.util.IgniteUtils$11.apply(IgniteUtils.java:890)
>         at
> org.apache.ignite.internal.util.IgniteUtils$11.apply(IgniteUtils.java:888)
>         at
>
> org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:991)
> *       at
> org.apache.ignite.internal.IgniteKernal.atomicLong(IgniteKernal.java:3584)
>         at
> org.apache.ignite.internal.IgniteKernal.atomicLong(IgniteKernal.java:3570)*
>         at com.nse.cc.CCApp.waitForCollectorNode(CCApp.java:138)
>         at com.nse.cc.CCApp.run(CCApp.java:49)
>         at
>
> org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:797)
>         at
>
> org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:781)
>         at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
>         at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
>         at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
>         at com.nse.cc.CCApp.main(CCApp.java:37)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at
>
> org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
>         at
> org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
>         at
> org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
>         at
> org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
> Caused by:
> org.apache.ignite.internal.transactions.IgniteTxRollbackCheckedException:
> Failed to finish transaction because it has been rolled back [timeout=0,
> tx=GridNearTxLocal[xid=dec3274ff61-00000000-0b6f-279c-0000-00000000000a,
> xidVersion=GridCacheVersion [topVer=191834012, order=1580354125037,
> nodeOrder=10], concurrency=PESSIMISTIC, isolation=REPEATABLE_READ,
> state=ACTIVE, invalidate=false, rollbackOnly=false,
> nodeId=51a12a74-856a-443b-95f0-4d52d5278aa4, timeout=0, duration=60251,
> label=null]]
>         at
>
> org.apache.ignite.internal.processors.cache.transactions.IgniteTxAdapter.rollbackException(IgniteTxAdapter.java:713)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.dht.colocated.GridDhtColocatedLockFuture.cancel(GridDhtColocatedLockFuture.java:581)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxFinishFuture.rollbackAsyncSafe(GridNearTxFinishFuture.java:415)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxFinishFuture.finish(GridNearTxFinishFuture.java:392)
>         at
>
> org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxLocal.rollbackNearTxLocalAsync(GridNearTxLocal.java:3441)
>         at
>
> org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager.rollbackOnTopologyChange(IgniteTxManager.java:326)
>         at
>
> org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:3079)
>         at
>
> org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2869)
>         at
> org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
>         at java.lang.Thread.run(Thread.java:748)
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Ignite AtomicLong

Posted by ashishb888 <as...@gmail.com>.
Thank you Ilya. I asked above because I got the below exception:

org.apache.ignite.transactions.TransactionRollbackException: Failed to
finish transaction because it has been rolled back [timeout=0,
tx=GridNearTxLocal[xid=dec3274ff61-00000000-0b6f-279c-0000-00000000000a,
xidVersion=GridCacheVersion [topVer=191834012, order=1580354125037,
nodeOrder=10], concurrency=PESSIMISTIC, isolation=REPEATABLE_READ,
state=ACTIVE, invalidate=false, rollbackOnly=false,
nodeId=51a12a74-856a-443b-95f0-4d52d5278aa4, timeout=0, duration=60251,
label=null]]
	at
org.apache.ignite.internal.util.IgniteUtils$11.apply(IgniteUtils.java:890)
	at
org.apache.ignite.internal.util.IgniteUtils$11.apply(IgniteUtils.java:888)
	at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:991)
*	at
org.apache.ignite.internal.IgniteKernal.atomicLong(IgniteKernal.java:3584)
	at
org.apache.ignite.internal.IgniteKernal.atomicLong(IgniteKernal.java:3570)*
	at com.nse.cc.CCApp.waitForCollectorNode(CCApp.java:138)
	at com.nse.cc.CCApp.run(CCApp.java:49)
	at
org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:797)
	at
org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:781)
	at
org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
	at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
	at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
	at com.nse.cc.CCApp.main(CCApp.java:37)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by:
org.apache.ignite.internal.transactions.IgniteTxRollbackCheckedException:
Failed to finish transaction because it has been rolled back [timeout=0,
tx=GridNearTxLocal[xid=dec3274ff61-00000000-0b6f-279c-0000-00000000000a,
xidVersion=GridCacheVersion [topVer=191834012, order=1580354125037,
nodeOrder=10], concurrency=PESSIMISTIC, isolation=REPEATABLE_READ,
state=ACTIVE, invalidate=false, rollbackOnly=false,
nodeId=51a12a74-856a-443b-95f0-4d52d5278aa4, timeout=0, duration=60251,
label=null]]
	at
org.apache.ignite.internal.processors.cache.transactions.IgniteTxAdapter.rollbackException(IgniteTxAdapter.java:713)
	at
org.apache.ignite.internal.processors.cache.distributed.dht.colocated.GridDhtColocatedLockFuture.cancel(GridDhtColocatedLockFuture.java:581)
	at
org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxFinishFuture.rollbackAsyncSafe(GridNearTxFinishFuture.java:415)
	at
org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxFinishFuture.finish(GridNearTxFinishFuture.java:392)
	at
org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxLocal.rollbackNearTxLocalAsync(GridNearTxLocal.java:3441)
	at
org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager.rollbackOnTopologyChange(IgniteTxManager.java:326)
	at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:3079)
	at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2869)
	at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
	at java.lang.Thread.run(Thread.java:748)



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/