public class TestAppendBlock extends AbstractRepositoryTestCase
BigdataFileSystem
. This also tests the correct assignment of block
identifiers, the ability to count the #of blocks in a file version, the
ability to visit the block identifiers for a file version, the ability to
read a specific block for a file version, and the ability to read all data
for a file version from an input stream.
FIXME test where there is only a single index partition and where there are
several. This will exercise both the logic that locates the index partition
into which the atomic append will go and the logic that computes the next
block identifer for the file version when entering a new partition. These
tests can be run by establishing the appropriate partitions in the data index
for the embedded federation.TestCase2.MyProperties, TestCase2.RandomType
BLOCK_SIZE, repo
client, dataService0, dataService1, fed, metadataService
keyBuilder, log, r
_randomType
Constructor and Description |
---|
TestAppendBlock() |
TestAppendBlock(String arg0) |
Modifier and Type | Method and Description |
---|---|
void |
test_atomicAppend2SmallBlocks()
Test the ability to write two partial blocks in a row onto a file version
and then read them back (test of append semantics).
|
void |
test_atomicAppend3SmallBlocks()
Test the ability to write three partial blocks in a row onto a file
version and then read them back (test of append semantics).
|
void |
test_atomicAppendCorrectRejection()
Verify correct rejection: (a) writes that are larger than one block.
|
void |
test_atomicAppendEmptyBlock()
Atomic append of a zero length block.
|
void |
test_atomicAppendFullBlock()
Atomic append of a full block.
|
void |
test_atomicAppendSmallBlock()
Test the ability to write a byte[] onto the index and read it back.
|
void |
test_atomicAppendStressTest()
A stress test for writing a partial and full blocks on a file and reading
back its data.
|
getProperties, read, read, setUp, tearDown
assertEquals, assertEquals, assertEquals, assertIndexRegistered, awaitAsynchronousOverflow, getPartitionCount
assertChildKeys, assertEntryCounts, assertKeys, assertKeys, assertKeys, assertSameAbstractNodeData, assertSameBTree, assertSameEntryIterator, assertSameEntryIterator, assertSameIterator, assertSameIterator, assertSameLeaf, assertSameLeafData, assertSameNode, assertSameNodeData, assertSameNodeOrLeaf, assertSameRaba, assertValues, assertValues, doEntryIteratorTest, doInsertKeySequenceTest, doInsertLookupRemoveStressTest, doInsertRandomKeySequenceTest, doInsertRandomKeySequenceTest, doInsertRandomSparseKeySequenceTest, doKnownKeySequenceTest, doRandomIndexOfTest, doRandomKeyInsertTest, doRandomLookupTest, doRemoveStructureStressTest, doSplitTest, doSplitWithDecreasingKeySequence, doSplitWithIncreasingKeySequence, doSplitWithRandomDenseKeySequence, getBTree, getBTree, getKeysAndValues, getRandomKeys, getRandomKeyValues, i2k, nextLong, useRawRecords
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, 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 TestAppendBlock()
public TestAppendBlock(String arg0)
arg0
- public void test_atomicAppendSmallBlock() throws IOException
IOException
public void test_atomicAppend2SmallBlocks() throws IOException
IOException
public void test_atomicAppend3SmallBlocks() throws IOException
IOException
public void test_atomicAppendEmptyBlock() throws IOException
IOException
public void test_atomicAppendFullBlock() throws IOException
IOException
public void test_atomicAppendCorrectRejection() throws IOException
IOException
public void test_atomicAppendStressTest() throws IOException
Note: By virtue of how the file names are choosen this also tests atomic append of a file when there is an existing file and the new file would be (a) before; and (b) after the existing file in the index order.
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.