| org.apache.derbyTesting.unitTests.harness.T_MultiThreadedIterations org.apache.derbyTesting.unitTests.store.T_RawStoreFactory
Method Summary | |
protected void | C010(int segment) C010 - Create a container within a transaction, commit and the re-open
the container twice. | protected void | C011() C011 - Create a container withina transaction, commit and the re-open
the container in update and non-update mode. | protected void | C012(long segment) C012 - Drop a container within a transaction, commit, see that it is deleted.
Drop a container within a transaction, rollback and re-open and see
that it is not deleted. | protected void | C014() C014 - Open a container for locking only. | protected void | C200() | protected void | C201(int whatPage) C201 - Create container with different page size, minimum record size,
inserting into these containers to check if the variables are set correctly. | protected void | CP001() | protected void | L001() | protected void | P001(long segment) Create a container, ensure it has one page with no records. | protected void | P002(long segment) Insert rows on the first page until the page is full, then add a page
and repeat the test (for a total of three pages with full rows). | protected void | P003(long segment) | protected void | P004(long segment) | protected void | P005(long segment) | protected void | P006() | protected void | P007(long segment) P007
this test exercises repeated updates on a 1K page
2 rows (with 1 column) will be inserted into the page. | protected void | P008(long segment) P008
this test exercises repeated inserts with small rows on a 1K page
we will insert as many rows as possible into the page. | protected void | P009(long segment) P009
this test exercises repeated shrinking and expanding of fields using updateFieldBySlot
we will insert as many rows as possible into the page. | protected void | P011(long segment) | protected void | P012(long segment) | protected void | P013() | protected void | P014() | protected void | P015() | protected void | P016() | protected void | P017() | protected void | P018() | protected void | P019() | protected void | P020() | protected void | P021() | protected void | P022() Test minimumRecordSize: this is to make sure that logRow and storeRecord
are consistent with each other when it comes to reserve space. | protected void | P023(int segment) Test overflowThreshold: this is to make sure that logRow and storeRecord
are consistent with each other when it comes to reserve space. | protected void | P030(long segment) Insert small rows and update them so that they overflow a page. | protected void | P031(long segment) Insert 4-column long rows into 1K pages, each column is less than a page. | protected void | P032(long segment) Insert 60-column long rows into 1K pages, each column is less than a page. | protected void | P033(long segment) Insert 100-column long rows into 1K pages, each column is less than a page. | protected void | P034(long segment) Insert 401 column long row with many small columns in the beginning,
and one large column at the end into 4K pages. | protected void | P035(long segment) Insert a single long column long row into a 1K page. | protected void | P036() Test space reclaimation - purging of a long row gets back all
the row pieces. | protected void | P037() Test space reclaimation - purging of a row with serveral long columns
get back all the column chains. | protected void | P038() Test space reclaimation - rollback of an insert (with purge) of a row
that overflows and with long column get back all the space in the row
and column chain. | protected void | P039() Test space reclaimation - shrink a head row piece. | protected void | P040() Test space reclaimation - shrink a non head row piece. | protected void | P041() Test space reclaimation - update a long column to another long column. | protected void | P042() Test space reclaimation - rollback of an update that create a long
column. | protected void | P043() Test space reclaimation - rollback of an update that create a new row
piece. | protected void | P050() | protected void | P051() | protected void | P052() | protected void | P053() | protected void | P054() | protected void | P055(long segment) Test rollback of partial row update.
Create a long row with 10 columns on 2 pages (5 columns on each page).
Update the 1st column on the 2nd page (the 6th column) which causes the
last column (10th column) to move off the page. | protected void | P056(long segment) Test rollback of partial row update.
Create a long row with 15 columns on 3 pages (5 columns on each page).
Update the 1st column on the 2nd page (the 6th column) which causes the
last column of that page (10th column) to move off the page. | protected void | P061() Sparse row test. | protected void | P071() Serializable column test. | protected void | P701(long segment) Insert a single row and keep updating it, adding columns
not using partial rows. | protected void | P702(long segment) Insert a single row and keep updating it, adding columns
using partial rows. | protected void | P703(long segment) Simple set of partial row updates on a singel page with
shrinking and expanding columns. | protected void | P704(long segment) Insert a single row with multiple portions. | protected void | P705(long segment) Same as 704 but update fields in the reverse order. | protected void | P706(long segment, boolean multiPortion) Insert a single row with single or multiple portions. | protected void | P707(long segment) | protected void | P708(long segment, boolean multiPortion) Insert a single row with single or multiple portions. | protected void | P709() P709:
this test exercises purgeAtSlot , rollsback and purges the slot again,
to make sure not logging the data does not have any impact on repurging
the rollbacked purges. | protected void | P710() | protected void | P711() Test space reclaimation - purging of a row with serveral long columns
rollback and repurge them again. | protected void | T000() T000 - ensure a transaction starts out idle. | protected void | T001() T001 - start and commit an empty transaction. | protected void | T002() T002 - start and abort an empty transaction. | protected void | T003() T003 - start and commit an empty transaction and then ensure
that the transaction remains open for another commit. | protected void | T004() T004 - start and abort an empty transaction and then ensure
that the transaction remains open for a commit and another abort. | protected void | T005() T005 check transaction identifiers on idle transactions. | protected void | T006() | protected void | T007() | protected void | T008() T008 - savepoint testing, ensure save points disappear at commit or abort. | protected void | T009() T009 - add a container and remove it within the same transaction. | protected void | T010() T010 - add a container with a default size and remove it within the same transaction. | protected void | T011() T011 - see that a container remains open over the commit of an open transaction.. | protected void | T012() | protected void | TC001() TC001 - Test the drop on commit mode for temp containers. | protected void | TC002(int mode, boolean doCommit) A clone of P002 for temporary containers. | protected void | TC003(int mode, boolean doCommit) Add a number of rows to a temp table opened in various modes,
and drop it before commit/abort. | protected void | TC004(int mode1, int mode2, int mode3, boolean doCommit, boolean closeThem) Open a temp table several time swith different modes and ensure the
correct behaviour (most severe open wins). | protected void | TC004all() Open a temp table several times with different modes and ensure the
correct behaviour (most severe open wins). | public void | boot(boolean create, Properties startParams) | protected String | getModuleToTestProtocolName() | protected String | getTestService() | protected void | joinSetupTest() | protected T_MultiThreadedIterations | newTestObject() | protected void | runEachTest() | protected void | runPurgeWithNoDataLoggesTests() | protected void | runTempTests() | protected void | runTestSet() | protected void | setupTest() |
logDataForPurges | protected boolean logDataForPurges(Code) | | |
openMode | protected int openMode(Code) | | |
testRollback | protected static boolean testRollback(Code) | | |
T_RawStoreFactory | public T_RawStoreFactory()(Code) | | |
C010 | protected void C010(int segment) throws T_Fail, StandardException(Code) | | C010 - Create a container within a transaction, commit and the re-open
the container twice.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
C011 | protected void C011() throws T_Fail, StandardException(Code) | | C011 - Create a container withina transaction, commit and the re-open
the container in update and non-update mode.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
C012 | protected void C012(long segment) throws T_Fail, StandardException(Code) | | C012 - Drop a container within a transaction, commit, see that it is deleted.
Drop a container within a transaction, rollback and re-open and see
that it is not deleted.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Standard Derby error policy |
C201 | protected void C201(int whatPage) throws T_Fail, StandardException(Code) | | C201 - Create container with different page size, minimum record size,
inserting into these containers to check if the variables are set correctly.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P001 | protected void P001(long segment) throws T_Fail, StandardException(Code) | | Create a container, ensure it has one page with no records. Then test
all the things we can do with an empty page opened read-only in the container.
Then add a new page, ensure it has the correct page number and is empty.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P002 | protected void P002(long segment) throws StandardException, T_Fail(Code) | | Insert rows on the first page until the page is full, then add a page
and repeat the test (for a total of three pages with full rows).
Fetch the rows back by handle and slot methods.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P007 | protected void P007(long segment) throws StandardException, T_Fail(Code) | | P007
this test exercises repeated updates on a 1K page
2 rows (with 1 column) will be inserted into the page.
We expand the row data in slot 0 by 1 byte until the page is completely full,
and overflows the record to an overflow page.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P008 | protected void P008(long segment) throws StandardException, T_Fail(Code) | | P008
this test exercises repeated inserts with small rows on a 1K page
we will insert as many rows as possible into the page. Then we reduce the row by 1 byte at a time,
we will try to insert another smaller row.
This test also tests spaceForInsert().
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P009 | protected void P009(long segment) throws StandardException, T_Fail(Code) | | P009
this test exercises repeated shrinking and expanding of fields using updateFieldBySlot
we will insert as many rows as possible into the page. Then set some of the columns to null,
That should not create more space on the page for inserts, because the extra space become
reservedspace for the row. So, the next insert should fail.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P011 | protected void P011(long segment) throws StandardException, T_Fail(Code) | | P011
this test exercises insertAtSlot, (LogicalUndo)null
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P022 | protected void P022() throws StandardException, T_Fail(Code) | | Test minimumRecordSize: this is to make sure that logRow and storeRecord
are consistent with each other when it comes to reserve space.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P023 | protected void P023(int segment) throws StandardException, T_Fail(Code) | | Test overflowThreshold: this is to make sure that logRow and storeRecord
are consistent with each other when it comes to reserve space.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P030 | protected void P030(long segment) throws StandardException, T_Fail(Code) | | Insert small rows and update them so that they overflow a page.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P031 | protected void P031(long segment) throws StandardException, T_Fail(Code) | | Insert 4-column long rows into 1K pages, each column is less than a page.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P032 | protected void P032(long segment) throws StandardException, T_Fail(Code) | | Insert 60-column long rows into 1K pages, each column is less than a page.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P033 | protected void P033(long segment) throws StandardException, T_Fail(Code) | | Insert 100-column long rows into 1K pages, each column is less than a page.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P034 | protected void P034(long segment) throws StandardException, T_Fail(Code) | | Insert 401 column long row with many small columns in the beginning,
and one large column at the end into 4K pages.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P036 | protected void P036() throws StandardException, T_Fail(Code) | | Test space reclaimation - purging of a long row gets back all
the row pieces.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P037 | protected void P037() throws StandardException, T_Fail(Code) | | Test space reclaimation - purging of a row with serveral long columns
get back all the column chains.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P038 | protected void P038() throws StandardException, T_Fail(Code) | | Test space reclaimation - rollback of an insert (with purge) of a row
that overflows and with long column get back all the space in the row
and column chain.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P041 | protected void P041() throws StandardException, T_Fail(Code) | | Test space reclaimation - update a long column to another long column.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P042 | protected void P042() throws StandardException, T_Fail(Code) | | Test space reclaimation - rollback of an update that create a long
column.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P043 | protected void P043()(Code) | | Test space reclaimation - rollback of an update that create a new row
piece.
|
P050 | protected void P050() throws StandardException, T_Fail(Code) | | Test that post commit processor does not stubbify a drop table that is
rolled back in a savepoint
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P055 | protected void P055(long segment) throws StandardException, T_Fail(Code) | | Test rollback of partial row update.
Create a long row with 10 columns on 2 pages (5 columns on each page).
Update the 1st column on the 2nd page (the 6th column) which causes the
last column (10th column) to move off the page. Then abort and make sure
that all the original columns are there and correct.
NOTE: stored length is twice string length + 2
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P056 | protected void P056(long segment) throws StandardException, T_Fail(Code) | | Test rollback of partial row update.
Create a long row with 15 columns on 3 pages (5 columns on each page).
Update the 1st column on the 2nd page (the 6th column) which causes the
last column of that page (10th column) to move off the page. Then abort
and make sure that all the original columns are there and correct.
NOTE: stored length is twice string length + 2
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P061 | protected void P061() throws StandardException, T_Fail(Code) | | Sparse row test.
Test sparse representation of rows using the FormatableBitSet class.
Insert, fetch and update a row having gaps.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P071 | protected void P071() throws StandardException, T_Fail(Code) | | Serializable column test.
Want to make sure we hit some otherwise dead code in StoredPage, used
for storing/reading Serializable/Externalizable data to/from a page.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P701 | protected void P701(long segment) throws StandardException, T_Fail(Code) | | Insert a single row and keep updating it, adding columns
not using partial rows.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P702 | protected void P702(long segment) throws StandardException, T_Fail(Code) | | Insert a single row and keep updating it, adding columns
using partial rows.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P703 | protected void P703(long segment) throws StandardException, T_Fail(Code) | | Simple set of partial row updates on a singel page with
shrinking and expanding columns.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P704 | protected void P704(long segment) throws StandardException, T_Fail(Code) | | Insert a single row with multiple portions.
Update fields in the various portions that grow.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P706 | protected void P706(long segment, boolean multiPortion) throws StandardException, T_Fail(Code) | | Insert a single row with single or multiple portions.
Update every other field with a long col
The update each column back to a null
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P707 | protected void P707(long segment) throws StandardException, T_Fail(Code) | | Insert a single record that has several chunks
and every other column is a long column
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P708 | protected void P708(long segment, boolean multiPortion) throws StandardException, T_Fail(Code) | | Insert a single row with single or multiple portions.
Update every other field with a long col
rollback.
The update each column back to a null & rollback
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P709 | protected void P709() throws StandardException, T_Fail(Code) | | P709:
this test exercises purgeAtSlot , rollsback and purges the slot again,
to make sure not logging the data does not have any impact on repurging
the rollbacked purges.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P710 | protected void P710() throws StandardException, T_Fail(Code) | | Test space reclaimation - purging of a long rows with a rollback and
purging againg with no data logging for purges
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
P711 | protected void P711() throws StandardException, T_Fail(Code) | | Test space reclaimation - purging of a row with serveral long columns
rollback and repurge them again.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
T003 | protected void T003() throws T_Fail, StandardException(Code) | | T003 - start and commit an empty transaction and then ensure
that the transaction remains open for another commit.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
T004 | protected void T004() throws T_Fail, StandardException(Code) | | T004 - start and abort an empty transaction and then ensure
that the transaction remains open for a commit and another abort.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
T008 | protected void T008() throws T_Fail, StandardException(Code) | | T008 - savepoint testing, ensure save points disappear at commit or abort.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
T010 | protected void T010() throws StandardException, T_Fail(Code) | | T010 - add a container with a default size and remove it within the same transaction.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
T011 | protected void T011() throws StandardException, T_Fail(Code) | | T011 - see that a container remains open over the commit of an open transaction..
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
TC002 | protected void TC002(int mode, boolean doCommit) throws StandardException, T_Fail(Code) | | A clone of P002 for temporary containers.
Insert rows on the first page until the page is full, then add a page
and repeat the test (for a total of three pages with full rows).
Fetch the rows back by handle methods.
Commit or abort the transaction, and see if table is empty.
Can be used as follows:
mode doCommit
TRUNCATE_ON_COMMIT true Ensure the table has only one empty page after commit
TRUNCATE_ON_COMMIT false Ensure the table has only one empty page after abort
0 false Ensure the table has only one empty page after abort
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
TC003 | protected void TC003(int mode, boolean doCommit) throws StandardException, T_Fail(Code) | | Add a number of rows to a temp table opened in various modes,
and drop it before commit/abort.
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
TC004 | protected void TC004(int mode1, int mode2, int mode3, boolean doCommit, boolean closeThem) throws StandardException, T_Fail(Code) | | Open a temp table several time swith different modes and ensure the
correct behaviour (most severe open wins).
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
TC004all | protected void TC004all() throws StandardException, T_Fail(Code) | | Open a temp table several times with different modes and ensure the
correct behaviour (most severe open wins).
exception: T_Fail - Unexpected behaviour from the API exception: StandardException - Unexpected exception from the implementation |
getModuleToTestProtocolName | protected String getModuleToTestProtocolName()(Code) | | |
joinSetupTest | protected void joinSetupTest() throws T_Fail(Code) | | T_MultiThreadedIteration method
exception: T_Fail - Unexpected behaviour from the API |
runTestSet | protected void runTestSet() throws T_Fail(Code) | | run the test
exception: T_Fail - Unexpected behaviour from the API |
setupTest | protected void setupTest() throws T_Fail(Code) | | Set up test
exception: T_Fail - Unexpected behaviour from the API |
Fields inherited from org.apache.derbyTesting.unitTests.harness.T_MultiThreadedIterations | protected int threadNumber(Code)(Java Doc)
|
|
|