Skip to content

Fix example to work with broken OSX ipv6 multicast #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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