mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-04-02 13:29:06 +00:00
[Test] change the default port base for ClusterDiscoveryConfiguration.UnicastZen to 30000
The previous value of 10000 collided with the standard test cluster ports when 6 or more JVMs are used.
This commit is contained in:
parent
246b2583a3
commit
884a744143
@ -108,7 +108,8 @@ public class ClusterDiscoveryConfiguration extends SettingsSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final static int calcBasePort() {
|
private final static int calcBasePort() {
|
||||||
return 10000 +
|
// note that this has properly co-exist with the port logic at InternalTestCluster's constructor
|
||||||
|
return 30000 +
|
||||||
1000 * (ElasticsearchIntegrationTest.CHILD_JVM_ID % 60) + // up to 60 jvms
|
1000 * (ElasticsearchIntegrationTest.CHILD_JVM_ID % 60) + // up to 60 jvms
|
||||||
100 * portRangeCounter.incrementAndGet(); // up to 100 nodes
|
100 * portRangeCounter.incrementAndGet(); // up to 100 nodes
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user