public class TestLeaderSelector extends BaseClassForTests
server
Constructor and Description |
---|
TestLeaderSelector() |
Modifier and Type | Method and Description |
---|---|
void |
testAutoRequeue() |
void |
testClosing() |
void |
testErrorPolicies() |
void |
testInterruption() |
void |
testInterruptLeadership() |
void |
testInterruptLeadershipWithRequeue() |
void |
testKillServerThenCloseShouldElectNewLeader()
This is similar to TestLeaderSelector.testKillSessionThenCloseShouldElectNewLeader
The differences are:
it restarts the TestingServer instead of killing the session
it uses autoRequeue instead of explicitly calling requeue
|
void |
testKillSessionThenCloseShouldElectNewLeader() |
void |
testLeaderNodeDeleteOnInterrupt() |
void |
testRaceAtStateChanged() |
void |
testRotatingLeadership() |
void |
testServerDying() |
createAndStartCluster, createServer, setup, teardown
@Test public void testLeaderNodeDeleteOnInterrupt() throws Exception
Exception
@Test public void testInterruptLeadershipWithRequeue() throws Exception
Exception
@Test public void testInterruptLeadership() throws Exception
Exception
@Test public void testRaceAtStateChanged() throws Exception
Exception
@Test public void testKillSessionThenCloseShouldElectNewLeader() throws Exception
Exception
@Test public void testKillServerThenCloseShouldElectNewLeader() throws Exception
Exception
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.