-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix [TCP/IP join] members configuration override [HZ-2786] #25075
Conversation
…ig members field is appended instead of getting replaced Changed the MemberDomConfigProcessor to replace the given value. [HZ-2786]
The job Click to expand the log file---------ERRORS----------- -------------------------- [ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/internal/config/override/ExternalMemberConfigurationOverrideEnvTest.java:101:82: ',' is not followed by whitespace. [WhitespaceAfter] -------------------------- [ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/test/java/com/hazelcast/internal/config/override/ExternalMemberConfigurationOverrideEnvTest.java:101:93: ',' is not followed by whitespace. [WhitespaceAfter] -------------------------- |
The job Click to expand the log file---------ERRORS----------- -------------------------- [ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-compiler/hazelcast/src/test/java/com/hazelcast/internal/config/override/ExternalMemberConfigurationOverrideEnvTest.java:101:82: ',' is not followed by whitespace. [WhitespaceAfter] -------------------------- [ERROR] /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-compiler/hazelcast/src/test/java/com/hazelcast/internal/config/override/ExternalMemberConfigurationOverrideEnvTest.java:101:93: ',' is not followed by whitespace. [WhitespaceAfter] -------------------------- |
The job Click to expand the log file-------------------------- -------TEST FAILURE------- -------------------------- [INFO] Results: [INFO] [ERROR] Failures: [ERROR] XMLConfigBuilderTest>AbstractConfigBuilderTest.testCompleteAdvancedNetworkConfig:527->HazelcastTestSupport.assertContains:815 Collection [10.10.1.12] (1) didn't contain expected '10.10.1.11' [INFO] [ERROR] Tests run: 54781, Failures: 1, Errors: 0, Skipped: 243 [INFO] |
…eeds to append to member list but external configuration needs to replace the existing list . Added a new flag to MemberDomConfigProcessor to indicate where this class is called from [HZ-2786]
I don't think we should change the behaviour of the env variable to overwrite instead of append. Previously, there was an explicit effort to ensure env variables patch an existing config - not overwrite. e.g. see #17878 and related issue #17874. Maybe the solution is to get rid of the default |
There is no direct hazelcast-docker.xml file . I think a hazelcast-default.xml is copied as hazelcast-docker.xml in the Do you think we should delete the line in |
This issue is reported by community.
When HZ_NETWORK_JOIN_TCPIP_MEMBERS env variable is set, the TcpIpConfig members field is appended instead of getting replaced
Fixes #21272
Jira https://hazelcast.atlassian.net/browse/HZ-2786
Checklist:
Team:
,Type:
,Source:
,Module:
) and Milestone setAdd to Release Notes
orNot Release Notes content
set