You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Caio Nishibe <ca...@gmail.com> on 2016/09/13 13:56:20 UTC

Ignite Atomic Long

Hi, 

I'm having some trouble with atomic long inside my compute job. I'm getting
the following exception once a while:


FINEST|4532/0|Service AntheusMatchServerNode|16-09-13
10:51:23|[13:51:23,382][SEVERE][pub-#46%null%][GridCacheAtomicLongImpl]
<ignite-atomics-sys-cache> Failed to add and get:
o.a.i.i.processors.datastructures.GridCacheAtomicLongImpl$7@3f009e9e
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|class
org.apache.ignite.internal.IgniteInterruptedCheckedException: null
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:175)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:117)
INFO|wrapper|Service AntheusMatchServerNode|16-09-13 10:51:23|executed
script: scripts/trayMessage.gv 1
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.cache.GridCacheAdapter.get(GridCacheAdapter.java:4667)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.cache.GridCacheAdapter.get(GridCacheAdapter.java:4650)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.cache.GridCacheAdapter.get(GridCacheAdapter.java:1391)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.datastructures.GridCacheAtomicLongImpl$7.call(GridCacheAtomicLongImpl.java:434)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.datastructures.GridCacheAtomicLongImpl$7.call(GridCacheAtomicLongImpl.java:431)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.cache.GridCacheUtils$23.call(GridCacheUtils.java:1648)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.cache.GridCacheUtils.outTx(GridCacheUtils.java:891)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.datastructures.GridCacheAtomicLongImpl.addAndGet(GridCacheAtomicLongImpl.java:274)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.antheus.matchserver.dependencies.jobs.MatchJob.execute(MatchJob.java:367)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6459)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:503)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:456)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
java.lang.Thread.run(Thread.java:745)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|Caused by:
java.lang.InterruptedException
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:998)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1304)
INFO|wrapper|Service AntheusMatchServerNode|16-09-13 10:51:23|executed
script: scripts/trayMessage.gv 1
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:159)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	... 18 more
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|class
org.apache.ignite.IgniteInterruptedException: null
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.IgniteUtils$2.apply(IgniteUtils.java:745)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.IgniteUtils$2.apply(IgniteUtils.java:743)
INFO|wrapper|Service AntheusMatchServerNode|16-09-13 10:51:23|executed
script: scripts/trayMessage.gv 1
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:901)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.datastructures.GridCacheAtomicLongImpl.addAndGet(GridCacheAtomicLongImpl.java:277)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.antheus.matchserver.dependencies.jobs.MatchJob.execute(MatchJob.java:367)
INFO|wrapper|Service AntheusMatchServerNode|16-09-13 10:51:23|executed
script: scripts/trayMessage.gv 1
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6459)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:503)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:456)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
java.lang.Thread.run(Thread.java:745)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|Caused by:
java.lang.InterruptedException
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:998)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1304)
INFO|wrapper|Service AntheusMatchServerNode|16-09-13 10:51:23|executed
script: scripts/trayMessage.gv 1
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:159)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:117)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.cache.GridCacheAdapter.get(GridCacheAdapter.java:4667)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.cache.GridCacheAdapter.get(GridCacheAdapter.java:4650)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.cache.GridCacheAdapter.get(GridCacheAdapter.java:1391)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.datastructures.GridCacheAtomicLongImpl$7.call(GridCacheAtomicLongImpl.java:434)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.datastructures.GridCacheAtomicLongImpl$7.call(GridCacheAtomicLongImpl.java:431)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.cache.GridCacheUtils$23.call(GridCacheUtils.java:1648)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.cache.GridCacheUtils.outTx(GridCacheUtils.java:891)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	at
org.apache.ignite.internal.processors.datastructures.GridCacheAtomicLongImpl.addAndGet(GridCacheAtomicLongImpl.java:274)
FINEST|4532/0|Service AntheusMatchServerNode|16-09-13 10:51:23|	... 9 more



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Atomic-Long-tp7706.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Ignite Atomic Long

Posted by Nikolai Tikhonov <nt...@apache.org>.
Hi,

I'm using a wrapper to start the nodes as service.
>

Could you check that the wrapper doesn't stop this thread? Also could you
share full logs?


> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Ignite-Atomic-Long-tp7706p7720.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Re: Ignite Atomic Long

Posted by Caio Nishibe <ca...@gmail.com>.
Hi,

I'm using a wrapper to start the nodes as service.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Atomic-Long-tp7706p7720.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Ignite Atomic Long

Posted by vkulichenko <va...@gmail.com>.
Hi,

This just means that the thread was interrupted. You should check the log
before the exception to see what could be a reason. It also looks like
you're using some kind of wrapper, probably it tried to stop the process?

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Atomic-Long-tp7706p7719.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.