Hazelcast race condition?
We run a Hazelcast cluster of 3 machines, each having the same instance of a process. They share amongst others an IMap named waitingMap. In the method activateAnotherBatch() we check for emptiness of the map. If the map is not empty, then we call some method on the map.