Hi. The question was answered on stackoverflow <http://stackoverflow.com/questions/43891757/closures-stuck-in-2-0-when-try-to-add-an-element-into-the-queue>. Duplicating the answer below:
It's not allowed to invoke ignite.queue and ignite.affinity methods in EventListener, because it may lead to deadlock. All cache operations, including EventListeners are executed in system pool, so it's not recommended to invoke inside EventListener operations, that uses system pool too. You could read more here at "Closures Execution and Thread Pools": https://apacheignite.readme.io/docs/async-support#section-listeners-and-chaining-futures And here https://apacheignite.readme.io/docs/thread-pools#section-system-pool Kind regards, Alex. On Thu, May 11, 2017 at 2:17 PM, fatality [via Apache Ignite Users] < [email protected]> wrote: > Hi > > I have just subscribed to the user group also same question is posted at > http://stackoverflow.com/questions/43891757/closures- > stuck-in-2-0-when-try-to-add-an-element-into-the-queue > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://apache-ignite-users.70518.x6.nabble.com/Closures- > stuck-in-2-0-when-try-to-add-an-element-into-the-queue-tp12587p12628.html > To start a new topic under Apache Ignite Users, email > [email protected] > To unsubscribe from Apache Ignite Users, click here > <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=YWxleGFuZGVyLmZlZG90b2ZmQGdtYWlsLmNvbXwxfC0xMzYxNTU0NTg=> > . > NAML > <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Closures-stuck-in-2-0-when-try-to-add-an-element-into-the-queue-tp12587p12936.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
