You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by hitendrapratap <hi...@target.com> on 2017/02/02 00:04:28 UTC

Does operations through entry processor blocks the regular GETs?

Does operations like update through entry processor blocks the regular GETs?
As entry processor internally lock the key. I think it does but just want to
make sure



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Does-operations-through-entry-processor-blocks-the-regular-GETs-tp10370.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Does operations through entry processor blocks the regular GETs?

Posted by vkulichenko <va...@gmail.com>.
As Denis mentioned, entry is locked while entry processor is executed, so you
can't read it. Entry processor is supposed to be as lightweight as possible,
you should avoid putting heavy long-running logic there.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Does-operations-through-entry-processor-blocks-the-regular-GETs-tp10370p11516.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Does operations through entry processor blocks the regular GETs?

Posted by hitendrapratap <hi...@target.com>.
Is there any functionality in Ignite which allow to read stale data while
writes are getting executed using entry processor.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Does-operations-through-entry-processor-blocks-the-regular-GETs-tp10370p11505.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Does operations through entry processor blocks the regular GETs?

Posted by hitendrapratap <hi...@target.com>.
Yes, verified the behavior. 



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Does-operations-through-entry-processor-blocks-the-regular-GETs-tp10370p10377.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Does operations through entry processor blocks the regular GETs?

Posted by Denis Magda <dm...@gridgain.com>.
Yes, an entry is locked when it’s being accessed by the entry processor.

—
Denis

> On Feb 1, 2017, at 4:04 PM, hitendrapratap <hi...@target.com> wrote:
> 
> Does operations like update through entry processor blocks the regular GETs?
> As entry processor internally lock the key. I think it does but just want to
> make sure
> 
> 
> 
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Does-operations-through-entry-processor-blocks-the-regular-GETs-tp10370.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.