-
Bug
-
Resolution: Done
-
Undefined
-
None
-
False
-
-
False
-
-
Describe the bug
Configuring a custom bind port with `--cache-embedded-network-bind-port` does not change the port.
Expected behavior
The bind port should be configured as expected when `--cache-embedded-network-bind-port` is explicitly configured.
Actual behavior
The default bind port is used.
How to Reproduce?
Configure `--cache-embedded-network-bind-port=7801` and observe that the logs show 7800 port:
INFO [org.infinispan.CLUSTER] (main) ISPN000079: Channel `ISPN` local address is `fedora-54374`, physical addresses are `[127.0.0.2:7800]`
Anything else?
Can be workaround by configuring the bind port using the system property -Djgroups.bind.port=7801.
The root cause is that the JGroupsConfigurator.SystemProperties sets the JGroups property -Djgroups.bind_port not the Infinispan property jgroups.bind.port and so the default value of 7800 that is used in Infinispan's default stack is used.
The jgroups.bind.port does not exist in JGroups, therefore if a user provides their own JGroups stack file this property won't take effect. To cover both scenarios, we can set both the jgroups.bind.port and jgroups.bind_port property in the JGroupsConfigurator.
- links to