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.RandomType
actors, 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, toString
assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomData
assertEquals, 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, logProperties
assertEquals, 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, toString
public TestHA3QuorumSemantics()
public TestHA3QuorumSemantics(String name)
name
- protected void setUp() throws Exception
setUp
in class AbstractQuorumTestCase
Exception
public void test_memberAddRemove3() throws InterruptedException
InterruptedException
public void test_pipelineAddRemove3() throws InterruptedException
PipelineState
of the downstream service as maintained by the
MockQuorumFixture.MockQuorumMember
.InterruptedException
public void test_voting3() throws InterruptedException
InterruptedException
public void test_serviceJoin3_simple() throws InterruptedException
InterruptedException
public void test_serviceJoin3_simpleForceRemove() throws InterruptedException
InterruptedException
public void test_pipelineReorganization() throws InterruptedException
InterruptedException
public void test_pipelineReorganization2() throws InterruptedException
InterruptedException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.