[
https://issues.apache.org/jira/browse/DERBY-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ole Solberg updated DERBY-3738:
-------------------------------
Attachment: 3738_p1-v1.diff.txt
3738_p1-v1.status.txt
Patch 3738_p1-v1:
Adding new replication state tests:
...
testReplication_Local_3_p1_StateNegativeTests used 14988 ms .
testReplication_Local_3_p2_StateTests_bigInsert_immediateStopMaster used
23454 ms .
testReplication_Local_3_p2_StateTests_smallInsert_immediateStopMaster_DISABLED
used 207 ms .
testReplication_Local_3_p2_StateTests_bigInsert_sleepBeforeStopMaster used
32065 ms .
testReplication_Local_3_p2_StateTests_smallInsert_sleepBeforeStopMaster used
24883 ms .
testReplication_Local_3_p3_StateNegativeTests used 14714 ms .
testReplication_Local_3_p4_StateNegativeTests used 14915 ms
plus refactoring and cleanup.
ReplicationSuite and suitesAll run on several platforms.
---------------------------------------------------------------------------------------------
Details:
--------
M
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/Utils.java
rmFiles()
w/tracerepl if file.delete did not succeed: printout filename.
M
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local.java
Rename testReplication_Local() to
testReplication_Local_existingTestsAsReplLoad()
testLogFilesSynched() to testReplication_Local_LogFilesSynched()
M
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_StateTest_part2.java
assertException() moved to ReplicationRun.
M
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationSuite.java
Added new test suites.
A
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_3_p1.java
Negative replication state testsmaster and slave running:
testReplication_Local_3_p1_StateNegativeTests()
Catch REPLICATION_CONFLICTING_ATTRIBUTES
master and slave running:
Catch SLAVE_OPERATION_DENIED_WHILE_CONNECTED
Catch REPLICATION_NOT_IN_SLAVE_MODE
Catch REPLICATION_NOT_IN_MASTER_MODE
A
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_3_p3.java
Negative replication state tests:
testReplication_Local_3_p3_StateNegativeTests()
master and slave running:
stop master:
Catch CANNOT_CONNECT_TO_DB_IN_SLAVE_MODE
attempt failover:
Catch REPLICATION_NOT_IN_MASTER_MODE
Catch CANNOT_CONNECT_TO_DB_IN_SLAVE_MODE
M
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
Removed suite()
Clean up debug output.
Added showCurrentState(),
waitForConnect(),
waitForSQLState()
Clean up local variable naming.
Increase timeout for server startup.
assertException() moved from ReplicationRun_Local_StateTest_part2.
Moved _testInsertUpdateDeleteOnMaster()
_verifyDatabase(),
_verify() from ReplicationRun_Local_1.
M
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Distributed.java
Variable renamed.
A
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_showStateChange.java
testReplication_Local_showStateChange_showReplState()
A test NOT run as part of ReplicationSuite, but can be used to log
how long time is spent on replication stae transitions.
M
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_1.java
Renamed testReplication_Local_1() to
testReplication_Local_1_InsertUpdateDeleteOnMaster().
Moved _testInsertUpdateDeleteOnMaster()
_verifyDatabase(),
_verify() to ReplicationRun.
A
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_3.java
Utilities for ReplicationRun_Local_3_p*.java tests.
_failOver(), _startSlaveTrueAndCreateTrue(), _stopMaster(),
_stopSlave().
A
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_3_p2.java
replication_Local_3_p2_StateTests()
Does
_testInsertUpdateDeleteOnMaster()
_stopMaster()
_failOver()
checking expected repl. state after each command.
Used as common test pattern for:
testReplication_Local_3_p2_StateTests_bigInsert_immediateStopMaster()
testReplication_Local_3_p2_StateTests_smallInsert_immediateStopMaster_DISABLED()
(Disabled due to DERBY-3617)
testReplication_Local_3_p2_StateTests_bigInsert_sleepBeforeStopMaster()
testReplication_Local_3_p2_StateTests_bigInsert_sleepBeforeStopMaster()
A
java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_3_p4.java
testReplication_Local_3_p4_StateNegativeTests()
In replication mode:
Catch CANNOT_CONNECT_TO_DB_IN_SLAVE_MODE
'internal_stopslave=true': Catch REPLICATION_STOPSLAVE_NOT_INITIATED
After failover.
verify master and slave db's.
> Add more tests for legal/illegal commands in the different replication states
> -----------------------------------------------------------------------------
>
> Key: DERBY-3738
> URL: https://issues.apache.org/jira/browse/DERBY-3738
> Project: Derby
> Issue Type: Test
> Components: Replication, Test
> Affects Versions: 10.5.0.0
> Environment: -
> Reporter: Ole Solberg
> Assignee: Ole Solberg
> Priority: Minor
> Attachments: 3738_p1-v1.diff.txt, 3738_p1-v1.status.txt
>
>
> Adding new replication state tests:
> ...
> testReplication_Local_3_p1_StateNegativeTests
> testReplication_Local_3_p2_StateTests_bigInsert_immediateStopMaster
>
> testReplication_Local_3_p2_StateTests_smallInsert_immediateStopMaster_DISABLED
> (Due to DERBY-3617)
> testReplication_Local_3_p2_StateTests_bigInsert_sleepBeforeStopMaster
> testReplication_Local_3_p2_StateTests_smallInsert_sleepBeforeStopMaster
> testReplication_Local_3_p3_StateNegativeTests
> testReplication_Local_3_p4_StateNegativeTests
> plus refactoring and cleanup.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.