Is it possible that in dequeuePortionIds you will have the same keys(at least one the same key) for scanCache in different threads? If it's possible, I think it's pretty easy to face a deadlock here with _getCurrentMax(customerMaxCache, queryScan), while I suppose 2 different Scans could have the same customer(well, at least it could be deduced from your comments).
Could you share full reproducer with the community? It's hard to try to find a deadlock if you don't even have a source code. Evgenii -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
