| org.apache.derbyTesting.unitTests.harness.T_MultiIterations org.apache.derbyTesting.unitTests.store.T_b2i
Method Summary | |
void | createCongloms(TransactionController tc, int num_cols, boolean unique, boolean varying_first_col, int max_btreerows_per_page, T_CreateConglomRet ret_val) Utility routine to create base table for tests.
A little utility routine to create base tables for tests. | protected static Properties | createProperties(Properties input_properties, boolean input_allowduplicates, int input_nkeyfields, int input_nuniquecolumns, boolean input_maintainparentlinks, long input_baseconglomerateid, int input_rowlocationcolumn) | public String | getModuleToTestProtocolName() | public static String | repeatString(String data, int repeat) | protected void | runTestSet() Driver routine for the btree secondary index tests. | protected void | setupTest() Routine one once per invocation of the test by the driver. | protected boolean | t_001(TransactionController tc) Test BTreeController.insert()
Just verify that insert code works for a secondary index. | protected boolean | t_002(TransactionController tc) Test backout during critical times of splits. | protected boolean | t_003(TransactionController tc) Test BTree.openScan(), BtreeScan.init(), BtreeScan.next(),
BtreeScan.fetch(). | protected boolean | t_004(TransactionController tc) Test qualifiers. | protected boolean | t_005(TransactionController tc) Test Branch splits - number of rows necessary to cause splits is raw
store implementation dependant (currently 5 rows per page in in-memory
implementation). | protected boolean | t_006(TransactionController tc) Test unimplemented interfaces. | protected boolean | t_007(TransactionController tc) | protected boolean | t_008(TransactionController tc) | protected boolean | t_009(TransactionController tc) Test unique/nonunique indexes - both positive and negative cases. | protected boolean | t_010(TransactionController tc) | protected boolean | t_011(TransactionController tc) Test Special cases of split. | protected boolean | t_012(TransactionController tc) Test Special cases of split. | protected boolean | t_013(TransactionController tc) Test backout during critical times of splits.
Force logical undo of an operation which generated an internal update
of a btree record:
case 1:
o insert into unique btree key1, rowlocation_1
o delete from btree key1, rowlocation_1
- this will mark the record logically deleted.
o insert enough records to move the logically deleted row to another
page to exercise logical undo of the delete.
o insert into btree key1, rowlocation_2
- this internally will generate a logical update field on the
record.
o insert enough records to move the logically deleted row to another
page to exercise logical undo of the delete.
o abort.
case 2:
o same as case 1 but don't change the rowlocation_1 value. | protected boolean | t_014(TransactionController tc) Test getTableProperties() of BTreeController. | protected boolean | t_015(TransactionController tc) Test latch release during critical time during row level locking. | protected boolean | t_016(TransactionController tc) Test deadlocks during critical times of row level locking. | protected boolean | t_017(TransactionController tc) Test BTree.openScan(), BtreeScan.init(), BtreeScan.next(),
BtreeScan.fetch() with descending indexes. | protected boolean | t_018(TransactionController tc) Test BTree.openScan(), BtreeScan.init(), BtreeScan.next(),
BtreeScan.fetch() with alternating ascending and descending coulmn
sort order indexes. | protected boolean | t_019(TransactionController tc) Test BTree.openScan(), BtreeScan.init(), BtreeScan.next(),
BtreeScan.fetch() with alternating ascending and descending coulmn
sort order indexes. | protected boolean | t_020(TransactionController tc) Test read uncommitted cases on scan. | protected boolean | t_delete(TransactionController tc, long conglomid, DataValueDescriptor[] search_key, DataValueDescriptor[] template) delete a single key, given key value. | protected boolean | t_perf(TransactionController tc) | protected boolean | t_scan(TransactionController tc, long conglomid, DataValueDescriptor[] template, DataValueDescriptor[] start_key, int start_op, Qualifier qualifier, DataValueDescriptor[] stop_key, int stop_op, int expect_numrows, int expect_key) Test a single scan. |
createCongloms | void createCongloms(TransactionController tc, int num_cols, boolean unique, boolean varying_first_col, int max_btreerows_per_page, T_CreateConglomRet ret_val) throws StandardException(Code) | | Utility routine to create base table for tests.
A little utility routine to create base tables for tests. Just
here to make tests a little more readable. It currently just
creates a heap table with "num_cols" SQLLongint columns.
The identifier to be used to open the conglomerate later. Parameters: num_cols - the number of columns in the base table. exception: StandardException - Standard exception policy. |
createProperties | protected static Properties createProperties(Properties input_properties, boolean input_allowduplicates, int input_nkeyfields, int input_nuniquecolumns, boolean input_maintainparentlinks, long input_baseconglomerateid, int input_rowlocationcolumn) throws StandardException(Code) | | |
getModuleToTestProtocolName | public String getModuleToTestProtocolName()(Code) | | |
runTestSet | protected void runTestSet() throws T_Fail(Code) | | Driver routine for the btree secondary index tests.
exception: T_Fail - Throws T_Fail on any test failure. |
setupTest | protected void setupTest() throws T_Fail(Code) | | Routine one once per invocation of the test by the driver.
Do work that should only be done once, no matter how many times
runTests() may be executed.
exception: T_Fail - Thrown on any error. |
t_006 | protected boolean t_006(TransactionController tc) throws StandardException, T_Fail(Code) | | Test unimplemented interfaces.
The following ScanController interfaces are not supported by the
btree implementation, because row locations are not returned outside
the interface. At some point we may package a key as a row location
but that does not really give any more functionality than using scan
to find your key:
ScanController.fetchLocation()
ScanController.newRowLocationTemplate()
ScanController.replace()
ConglomerateController.delete()
ConglomerateController.fetch()
ConglomerateController.insertAndFetchLocation()
ConglomerateController.newRowLocationTemplate()
ConglomerateController.replace()
exception: StandardException - Standard exception policy. exception: T_Fail - Throws T_Fail on any test failure. |
t_011 | protected boolean t_011(TransactionController tc) throws StandardException, T_Fail(Code) | | Test Special cases of split.
Testing: restartSplitFor() call in LeafControlRow().
The first case is where we split
down the tree and reach the leaf, pick a split point, and then find
that there is not enough room to insert row into parent branch page.
The second case is the same as the first except the calling code is
trying to split a branch page and the parent branch page doesn't have
room for the row.
exception: StandardException - Standard exception policy. exception: T_Fail - Throws T_Fail on any test failure. |
t_012 | protected boolean t_012(TransactionController tc) throws StandardException, T_Fail(Code) | | Test Special cases of split.
Testing: restartSplitFor() call in BranchControlRow().
The second case is the same as the first except the calling code is
trying to split a branch page and the parent branch page doesn't have
room for the row.
exception: StandardException - Standard exception policy. exception: T_Fail - Throws T_Fail on any test failure. |
t_013 | protected boolean t_013(TransactionController tc) throws StandardException, T_Fail(Code) | | Test backout during critical times of splits.
Force logical undo of an operation which generated an internal update
of a btree record:
case 1:
o insert into unique btree key1, rowlocation_1
o delete from btree key1, rowlocation_1
- this will mark the record logically deleted.
o insert enough records to move the logically deleted row to another
page to exercise logical undo of the delete.
o insert into btree key1, rowlocation_2
- this internally will generate a logical update field on the
record.
o insert enough records to move the logically deleted row to another
page to exercise logical undo of the delete.
o abort.
case 2:
o same as case 1 but don't change the rowlocation_1 value. This
simulates what the language will generate on an update of a key
field.
exception: StandardException - Standard exception policy. exception: T_Fail - Throws T_Fail on any test failure. |
|
|