public class TestHA3QuorumSemantics extends AbstractQuorumTestCase
These conditions arise because the quorum can meet with 2 out of 3 services forming a consensus. Even if the third service has the same lastCommitTime, if it votes after the other services, then it can be in the position of joining a quorum which has already met. This leads naturally into an exploration of the synchronization protocol for the persistent state of the services when joining a met quorum.
TestCase2.MyProperties, TestCase2.RandomTypeactors, clients, fixture, k, quorums_randomType, log| Constructor and Description |
|---|
TestHA3QuorumSemantics() |
TestHA3QuorumSemantics(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
test_memberAddRemove3()
Unit test for quorum member add/remove.
|
void |
test_pipelineAddRemove3()
Unit test for write pipeline add/remove, including the
PipelineState of the downstream service as maintained by the
MockQuorumFixture.MockQuorumMember. |
void |
test_pipelineReorganization()
Unit tests for pipeline reorganization when the leader is elected.
|
void |
test_pipelineReorganization2()
Variations on standard pipelineReorganization to test conditions that
occasionally fail in TestHA3
|
void |
test_serviceJoin3_simple()
Unit test for service join/leave where services vote in the pipeline
order so the leader does not need to reorganize the pipeline when the
number of joined services reaches (k+1)/2.
|
void |
test_serviceJoin3_simpleForceRemove() |
void |
test_voting3()
Unit test for the voting protocol.
|
assertCondition, tearDown, toStringassertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomDataassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getProperties, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logPropertiesassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic TestHA3QuorumSemantics()
public TestHA3QuorumSemantics(String name)
name - protected void setUp()
throws Exception
setUp in class AbstractQuorumTestCaseExceptionpublic void test_memberAddRemove3()
throws InterruptedException
InterruptedExceptionpublic void test_pipelineAddRemove3()
throws InterruptedException
PipelineState of the downstream service as maintained by the
MockQuorumFixture.MockQuorumMember.InterruptedExceptionpublic void test_voting3()
throws InterruptedException
InterruptedExceptionpublic void test_serviceJoin3_simple()
throws InterruptedException
InterruptedExceptionpublic void test_serviceJoin3_simpleForceRemove()
throws InterruptedException
InterruptedExceptionpublic void test_pipelineReorganization()
throws InterruptedException
InterruptedExceptionpublic void test_pipelineReorganization2()
throws InterruptedException
InterruptedExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.