Hello! It may work due to a pure chance and then eventually lock.
Actually putAsync will execute synchronously if executed on data node (for a given key). It is recommended to avoid any cache operations from event listeners. In Event Listener you can put data to queue, and dequeue it in a separate threads, running put() from there. Can you try this approach, see if it helps? Is your last lockup still related to cache events? Regards, -- Ilya Kasnacheev чт, 24 янв. 2019 г. в 17:37, Humphrey <[email protected]>: > And can you also clarify which thread pool is used for cache.put() / > cache.putAsync ? > > I'm getting a lock whit two nodes when putting data into the cache with > map.forEach((key, value) -> cache.putAsync(key, value)); > I could also try putAllAsync() but don't know if that is better than > putAsync. > > > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >
