Skip to content

Conversation

@deftdawg
Copy link

Because of the issue described here, IPv6 multicast does not work on OSX breaking this and other hazelcast examples from working. A parameter must be passed to the JVM to prefer the IPv4 network stack. This PR does that. I don't think it will break anything on Linux or Windows, but I haven't tested it there.

PR for other example effected by this is: hazelcast-guides/springboot-webfilter-session-replication#43

@enozcan
Copy link
Contributor

enozcan commented Oct 25, 2021

Isn’t IPv4 enabled and IPv6 disabled by default for Hazelcast? Do you really need to set that property? See https://docs.hazelcast.com/imdg/4.2/clusters/network-configuration.html#ipv6-support

@deftdawg
Copy link
Author

deftdawg commented Oct 25, 2021

At least with both instances running on the same mac (different SERVER_PORT values), they are not able to form a cluster without the above parameter (that gets passed to the JVM options)... they instead start two independent clusters on 5701 and 5702.

OpenJDK 16.0.1 64-bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants