However, weird thing is when hazelcast process die itself(after continuous try), docker swarm replace the failing containers and then Hazelcast discover all nodes and successfully form cluster. So the same code(image) starts working.
I have noticed that in failing scenario, Hazelcast process could not add all ips in ip-range to blacklist. I could not find
2019-06-04 09:16:01.474 INFO 22 --- [cached.thread-3] com.hazelcast.cluster.impl.TcpIpJoiner : [10.0.48.17]:5701 [trades] [3.12] [10.0.48.18]:5701 is added to the blacklist.
for all ips except where we actually want.
I don't know why. Further noticed that adding to blacklist happens in separate thread (not in main).
So, not getting what is actual cause.
regards,
Amandeep Singh