Open kkewwei opened 1 month ago
More details:
When the node_t1
is excluded from the vote config, and the cluster starts a new leader election, but the the node node_t2
hasn't been elected as the new leader.
At the moment, we send request to get the ClusterManager, we first get ClusterManager name, and leads to the NullPointerException.
internalCluster().nonClusterManagerClient()
-> ......->getClusterManagerName()
[2024-09-20T14:09:20,164][DEBUG][o.o.t.TransportService ] [testElectOnlyBetweenClusterManagerNodes] Action: internal:monitor/term
[2024-09-20T14:09:20,167][DEBUG][o.o.c.s.ClusterApplierService] [node_t0] processing [becoming candidate: joinLeaderInTerm]: execute
[2024-09-20T14:09:20,167][DEBUG][o.o.c.s.ClusterApplierService] [node_t0] cluster state updated, version [6], source [becoming candidate: joinLeaderInTerm]
[2024-09-20T14:09:20,168][INFO ][o.o.c.s.ClusterApplierService] [node_t0] cluster-manager node changed {previous [{node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}], current []}, term: 1, version: 6, reason: becoming candidate: joinLeaderInTerm
[2024-09-20T14:09:20,168][DEBUG][o.o.c.c.JoinHelper ] [node_t0] attempting to join {node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true} with JoinRequest{sourceNode={node_t0}{iTIfjfecSyKNwNqmlwoS9A}{HEvdv2ZbR1W6osMrJfOlSQ}{127.0.0.1}{127.0.0.1:61664}{d}{shard_indexing_pressure_enabled=true}, minimumTerm=1, optionalJoin=Optional[Join{term=2, lastAcceptedTerm=1, lastAcceptedVersion=6, sourceNode={node_t0}{iTIfjfecSyKNwNqmlwoS9A}{HEvdv2ZbR1W6osMrJfOlSQ}{127.0.0.1}{127.0.0.1:61664}{d}{shard_indexing_pressure_enabled=true}, targetNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}}]}
[2024-09-20T14:09:20,168][DEBUG][o.o.c.s.ClusterApplierService] [node_t0] apply cluster state with version 6
[2024-09-20T14:09:20,168][DEBUG][o.o.t.TransportService ] [node_t0] Action: internal:cluster/coordination/join
[2024-09-20T14:09:20,168][DEBUG][o.o.c.s.ClusterApplierService] [node_t0] set locally applied cluster state to version 6
[2024-09-20T14:09:20,168][DEBUG][o.o.c.s.ClusterApplierService] [node_t0] processing [becoming candidate: joinLeaderInTerm]: took [0s] done applying updated cluster state (version: 6, uuid: sCFlUbCGT4GtAN3upFZjSA)
[2024-09-20T14:09:20,169][DEBUG][o.o.c.s.ClusterApplierService] [node_t1] processing [becoming candidate: after abdicating to {node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}]: execute
[2024-09-20T14:09:20,169][DEBUG][o.o.c.s.ClusterApplierService] [node_t1] cluster state updated, version [6], source [becoming candidate: after abdicating to {node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}]
[2024-09-20T14:09:20,169][DEBUG][o.o.c.s.MasterService ] [node_t1] took [0s] to notify listeners on successful publication of cluster state (version: 6, uuid: sCFlUbCGT4GtAN3upFZjSA) for [Tasks batched with key: org.opensearch.cluster.coordination.Coordinator and count: 1]
[2024-09-20T14:09:20,169][INFO ][o.o.c.s.ClusterApplierService] [node_t1] cluster-manager node changed {previous [{node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}], current []}, term: 1, version: 6, reason: becoming candidate: after abdicating to {node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}
[2024-09-20T14:09:20,169][DEBUG][o.o.c.c.Coordinator ] [node_t1] joinLeaderInTerm: for [{node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}] with term 2
[2024-09-20T14:09:20,169][DEBUG][o.o.c.s.MasterService ] [node_t1] executing cluster state update for [Tasks batched with key: org.opensearch.cluster.coordination.Coordinator and count: 1]
[2024-09-20T14:09:20,169][DEBUG][o.o.c.s.ClusterApplierService] [node_t1] apply cluster state with version 6
[2024-09-20T14:09:20,169][DEBUG][o.o.c.c.CoordinationState] [node_t1] handleStartJoin: leaving term [1] due to StartJoinRequest{term=2,node={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}}
[2024-09-20T14:09:20,169][DEBUG][o.o.c.c.CoordinationState] [node_t1] handleStartJoin: discarding VoteCollection{votes=[rSwcqPy5TuC7WxPExXRFpQ, 87r6gSkrQ4uTH-eZIr698A], joins=[Join{term=1, lastAcceptedTerm=0, lastAcceptedVersion=0, sourceNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}, targetNode={node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}}, Join{term=1, lastAcceptedTerm=0, lastAcceptedVersion=0, sourceNode={node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}, targetNode={node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}}]}: standing down as leader
[2024-09-20T14:09:20,169][DEBUG][o.o.c.s.ClusterApplierService] [node_t1] set locally applied cluster state to version 6
[2024-09-20T14:09:20,170][DEBUG][o.o.c.c.JoinHelper ] [node_t1] successful response to StartJoinRequest{term=2,node={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}} from {node_t0}{iTIfjfecSyKNwNqmlwoS9A}{HEvdv2ZbR1W6osMrJfOlSQ}{127.0.0.1}{127.0.0.1:61664}{d}{shard_indexing_pressure_enabled=true}
[2024-09-20T14:09:20,202][DEBUG][o.o.n.r.t.AverageCpuUsageTracker] [node_t0] Recording cpu usage: 24%
[2024-09-20T14:09:20,216][DEBUG][o.o.t.TcpTransport ] [node_t0] opened transport connection [4] to [{127.0.0.1:61706}{vjUcsf__T_-Kuw_f_____w}{127.0.0.1}{127.0.0.1:61706}] using channels [[NioSocketChannel{localAddress=/127.0.0.1:61722, remoteAddress=127.0.0.1/127.0.0.1:61706}]]
[2024-09-20T14:09:20,200][DEBUG][o.o.c.s.MasterService ] [node_t1] took [0s] to compute cluster state update for [Tasks batched with key: org.opensearch.cluster.coordination.Coordinator and count: 1]
[2024-09-20T14:09:20,178][DEBUG][o.o.c.s.ClusterApplierService] [node_t1] processing [becoming candidate: after abdicating to {node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}]: took [0s] done applying updated cluster state (version: 6, uuid: sCFlUbCGT4GtAN3upFZjSA)
[2024-09-20T14:09:20,203][DEBUG][o.o.n.r.t.AverageMemoryUsageTracker] [node_t0] Recording memory usage: 0%
[2024-09-20T14:09:20,193][DEBUG][o.o.d.FileBasedSeedHostsProvider] [node_t0] seed addresses: [127.0.0.1:61696, 127.0.0.1:61706]
[2024-09-20T14:09:20,201][DEBUG][o.o.c.c.Coordinator ] [node_t2] joinLeaderInTerm: coordinator becoming CANDIDATE in term 2 (was FOLLOWER, lastKnownLeader was [Optional[{node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}]])
[2024-09-20T14:09:20,192][DEBUG][o.o.d.FileBasedSeedHostsProvider] [node_t1] seed addresses: [127.0.0.1:61706]
[2024-09-20T14:09:20,205][DEBUG][o.o.c.c.JoinHelper ] [node_t1] attempting to join {node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true} with JoinRequest{sourceNode={node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}, minimumTerm=1, optionalJoin=Optional[Join{term=2, lastAcceptedTerm=1, lastAcceptedVersion=6, sourceNode={node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}, targetNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}}]}
[2024-09-20T14:09:20,219][DEBUG][o.o.c.s.MasterService ] [node_t1] took [0s] to notify listeners on unchanged cluster state for [Tasks batched with key: org.opensearch.cluster.coordination.Coordinator and count: 1]
[2024-09-20T14:09:20,220][DEBUG][o.o.t.TransportService ] [node_t0] Action: internal:transport/handshake
[2024-09-20T14:09:20,220][DEBUG][o.o.t.TransportService ] [node_t1] Action: internal:cluster/coordination/join
[2024-09-20T14:09:20,220][DEBUG][o.o.t.TcpTransport ] [node_t1] opened transport connection [3] to [{127.0.0.1:61706}{vjUcsf__T_-Kuw_f_____w}{127.0.0.1}{127.0.0.1:61706}] using channels [[NioSocketChannel{localAddress=/127.0.0.1:61720, remoteAddress=127.0.0.1/127.0.0.1:61706}]]
[2024-09-20T14:09:20,220][DEBUG][o.o.c.c.ElectionSchedulerFactory] [node_t2] scheduling scheduleNextElection{gracePeriod=0s, thisAttempt=0, maxDelayMillis=100, delayMillis=91, ElectionScheduler{attempt=1, ElectionSchedulerFactory{initialTimeout=100ms, backoffTime=100ms, maxTimeout=10s}}}
[2024-09-20T14:09:20,221][DEBUG][o.o.t.TransportService ] [node_t1] Action: internal:transport/handshake
[2024-09-20T14:09:20,222][DEBUG][o.o.t.TcpTransport ] [node_t0] opened transport connection [5] to [{127.0.0.1:61696}{vjUcsf__T_-Kuw_f_____w}{127.0.0.1}{127.0.0.1:61696}] using channels [[NioSocketChannel{localAddress=/127.0.0.1:61721, remoteAddress=127.0.0.1/127.0.0.1:61696}]]
[2024-09-20T14:09:20,221][DEBUG][o.o.c.c.LeaderChecker ] [node_t2] closed
[2024-09-20T14:09:20,226][DEBUG][o.o.t.TransportService ] [node_t0] Action: internal:transport/handshake
[2024-09-20T14:09:20,228][DEBUG][o.o.d.FileBasedSeedHostsProvider] [node_t2] seed addresses: [127.0.0.1:61696]
[2024-09-20T14:09:20,228][DEBUG][o.o.c.c.JoinHelper ] [node_t1] successful response to StartJoinRequest{term=2,node={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}} from {node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}
[2024-09-20T14:09:20,231][DEBUG][o.o.c.s.ClusterApplierService] [node_t2] processing [becoming candidate: joinLeaderInTerm]: execute
[2024-09-20T14:09:20,231][DEBUG][o.o.c.s.ClusterApplierService] [node_t2] cluster state updated, version [6], source [becoming candidate: joinLeaderInTerm]
[2024-09-20T14:09:20,231][DEBUG][o.o.c.c.CoordinationState] [node_t2] handleJoin: added join Join{term=2, lastAcceptedTerm=1, lastAcceptedVersion=6, sourceNode={node_t0}{iTIfjfecSyKNwNqmlwoS9A}{HEvdv2ZbR1W6osMrJfOlSQ}{127.0.0.1}{127.0.0.1:61664}{d}{shard_indexing_pressure_enabled=true}, targetNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}} from [{node_t0}{iTIfjfecSyKNwNqmlwoS9A}{HEvdv2ZbR1W6osMrJfOlSQ}{127.0.0.1}{127.0.0.1:61664}{d}{shard_indexing_pressure_enabled=true}] for election, electionWon=false lastAcceptedTerm=1 lastAcceptedVersion=6
[2024-09-20T14:09:20,232][INFO ][o.o.c.s.ClusterApplierService] [node_t2] cluster-manager node changed {previous [{node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}], current []}, term: 1, version: 6, reason: becoming candidate: joinLeaderInTerm
[2024-09-20T14:09:20,232][DEBUG][o.o.c.s.ClusterApplierService] [node_t2] apply cluster state with version 6
[2024-09-20T14:09:20,232][DEBUG][o.o.c.s.ClusterApplierService] [node_t2] set locally applied cluster state to version 6
[2024-09-20T14:09:20,233][DEBUG][o.o.c.s.ClusterApplierService] [node_t2] processing [becoming candidate: joinLeaderInTerm]: took [0s] done applying updated cluster state (version: 6, uuid: sCFlUbCGT4GtAN3upFZjSA)
[2024-09-20T14:09:20,233][DEBUG][o.o.c.c.JoinHelper ] [node_t2] attempting to join {node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true} with JoinRequest{sourceNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}, minimumTerm=1, optionalJoin=Optional[Join{term=2, lastAcceptedTerm=1, lastAcceptedVersion=6, sourceNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}, targetNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}}]}
[2024-09-20T14:09:20,235][DEBUG][o.o.t.TransportService ] [node_t2] Action: internal:cluster/coordination/join
[2024-09-20T14:09:20,239][DEBUG][o.o.c.c.CoordinationState] [node_t2] handleJoin: added join Join{term=2, lastAcceptedTerm=1, lastAcceptedVersion=6, sourceNode={node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}, targetNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}} from [{node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}] for election, electionWon=false lastAcceptedTerm=1 lastAcceptedVersion=6
[2024-09-20T14:09:20,240][DEBUG][o.o.t.TcpTransport ] [node_t0] closed transport connection [5] to [{127.0.0.1:61696}{vjUcsf__T_-Kuw_f_____w}{127.0.0.1}{127.0.0.1:61696}] with age [0ms]
[2024-09-20T14:09:20,240][DEBUG][o.o.t.TcpTransport ] [node_t0] closed transport connection [4] to [{127.0.0.1:61706}{vjUcsf__T_-Kuw_f_____w}{127.0.0.1}{127.0.0.1:61706}] with age [0ms]
[2024-09-20T14:09:20,240][DEBUG][o.o.c.c.CoordinationState] [node_t2] handleJoin: added join Join{term=2, lastAcceptedTerm=1, lastAcceptedVersion=6, sourceNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}, targetNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}} from [{node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}] for election, electionWon=true lastAcceptedTerm=1 lastAcceptedVersion=6
[2024-09-20T14:09:20,241][DEBUG][o.o.c.c.CoordinationState] [node_t2] handleJoin: election won in term [2] with VoteCollection{votes=[rSwcqPy5TuC7WxPExXRFpQ, 87r6gSkrQ4uTH-eZIr698A], joins=[Join{term=2, lastAcceptedTerm=1, lastAcceptedVersion=6, sourceNode={node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}, targetNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}}, Join{term=2, lastAcceptedTerm=1, lastAcceptedVersion=6, sourceNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}, targetNode={node_t2}{rSwcqPy5TuC7WxPExXRFpQ}{Qh3crORDQlG2QVH4siYwNg}{127.0.0.1}{127.0.0.1:61706}{m}{shard_indexing_pressure_enabled=true}}]}
[2024-09-20T14:09:20,242][DEBUG][o.o.c.c.Coordinator ] [node_t2] handleJoinRequest: coordinator becoming LEADER in term 2 (was CANDIDATE, lastKnownLeader was [Optional[{node_t1}{87r6gSkrQ4uTH-eZIr698A}{qhTYNnkYSmiSXYu7qZbJHg}{127.0.0.1}{127.0.0.1:61696}{m}{shard_indexing_pressure_enabled=true}]])
[2024-09-20T14:09:20,242][DEBUG][o.o.t.TransportService ] [node_t0] Action: internal:discovery/request_peers
[2024-09-20T14:09:20,176][WARN ][o.o.t.InternalTestCluster] [testElectOnlyBetweenClusterManagerNodes] Can't fetch cluster state
java.lang.NullPointerException: Cannot invoke "org.opensearch.cluster.node.DiscoveryNode.getName()" because the return value of "org.opensearch.cluster.node.DiscoveryNodes.getClusterManagerNode()" is null
at org.opensearch.test.InternalTestCluster.getClusterManagerName(InternalTestCluster.java:2173) [classes/:?]
at org.opensearch.test.InternalTestCluster.getClusterManagerName(InternalTestCluster.java:2163) [classes/:?]
at org.opensearch.test.InternalTestCluster.nonClusterManagerClient(InternalTestCluster.java:897) [classes/:?]
at org.opensearch.cluster.SpecificClusterManagerNodesIT.lambda$testElectOnlyBetweenClusterManagerNodes$0(SpecificClusterManagerNodesIT.java:252) [classes/:?]
at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1124) [classes/:?]
at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1109) [classes/:?]
at org.opensearch.cluster.SpecificClusterManagerNodesIT.testElectOnlyBetweenClusterManagerNodes(SpecificClusterManagerNodesIT.java:250) [classes/:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) ~[?:?]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750) [randomizedtesting-runner-2.7.1.jar:?]
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:938) [randomizedtesting-runner-2.7.1.jar:?]
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:974) [randomizedtesting-runner-2.7.1.jar:?]
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988) [randomizedtesting-runner-2.7.1.jar:?]
at org.opensearch.test.OpenSearchTestClusterRule$1.evaluate(OpenSearchTestClusterRule.java:369) [classes/:?]
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) [randomizedtesting-runner-2.7.1.jar:?]
at org.junit.rules.RunRules.evaluate(RunRules.java:20) [junit-4.13.2.jar:4.13.2]
Describe the bug
Test org.opensearch.cluster.SpecificClusterManagerNodesIT.testElectOnlyBetweenClusterManagerNodes is flaky
https://build.ci.opensearch.org/job/gradle-check/48160/testReport/junit/org.opensearch.cluster/SpecificClusterManagerNodesIT/testElectOnlyBetweenClusterManagerNodes/
Related component
Cluster Manager
To Reproduce
REPRODUCE WITH:
./gradlew ':server:internalClusterTest' --tests "org.opensearch.cluster.SpecificClusterManagerNodesIT.testElectOnlyBetweenClusterManagerNodes" -Dtests.seed=7C9E59D13B1A1CA3 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=az-Cyrl-AZ -Dtests.timezone=Asia/Almaty -Druntime.java=21
Expected behavior
Test should always pass
Additional Details
Plugins Please list all plugins currently enabled.
Screenshots If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context Add any other context about the problem here.