You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by xingjl6280 <xi...@163.com> on 2020/07/30 12:31:39 UTC

Does user thread interruption impact Ignite?

Hi team,

Due to biz purpose, I need to interrupte my thread which using ignite lock
and cache, by future.cancel(true).

Then I see lots of exception:
javax.cache.CacheException: class
org.apache.ignite.IgniteInterruptedException: Failed to wait for
asynchronous operation permit (thread got interrupted).

My question is, does this action cause any unrecoverable impact inside
Ignite? 
If yes, is there any better way to stop a user thread immediately?

Please kindly advise, thank you

Regards,




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

Re: Does user thread interruption impact Ignite?

Posted by akurbanov <an...@gmail.com>.
Hello,

Does these exceptions impact the cluster in your use-case? I would say that
this should be generally safe to interrupt user threads running on a client
side, but it is hard to say if there is any corner case or a critical
operation that might lead to cluster being impacted with interrupt.

I recall that I mostly aware of cases where this kind of exception was a
consequence rather that a cause.

Interrupts are also used to timeout a compute task, so I would say that you
should be safe doing the same.

Please post logs if you will ever see issues with interrupts being the cause
of cluster issue.

Best regards,
Anton



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