db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ole Solberg (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4417) Enable distributed replication testing - master server, slave server and test client running on different hosts.
Date Wed, 30 Dec 2009 17:40:30 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Ole Solberg updated DERBY-4417:

    Attachment: DERBY-4417_P2_p1.diff.txt

This patch enables the ReplicationRun_Distributed test, reading a replication configuration
the replicationtest.properties file.

1. java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Distributed.java
   - Write the "dummy" ij script 'ij_dummy_script.sql'.
   - Read replication configuration from  '${user.dir}/replicationtest.properties'.
   - Replace  System.out.println() with Utils.DEBUG()

2. java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/SimplePerfTest.java
   - Enable specifying database path name for test client connection.

3. java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/SimplePerfTest_Verify.java
   Added. A simple verificationclient for SimplePerfTest.java just asserting correct number
of rows in 
   the test database (slave or master).

4. java/testing/org/apache/derbyTesting/junit/TestConfiguration.java
   - added existingServerSuite(..., dbPath).Ditto for clientExistingServerSuite(), existingServerDecorator()
     and TestConfiguration().

5. java/testing/org/apache/derbyTesting/junit/ServerSetup.java
   - added getNewConfiguration(..., dbPath) and ditto for ServerSetup().

Depends on DERBY-4417_P1_p1.diff.

Ran OK on suites.All and org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationRun_Distributed.

ReplicationRun_Distributed is not wired into suites.All. It is intended to be run "manually".

> Enable distributed replication testing - master server, slave server and test client
running on different hosts.
> ----------------------------------------------------------------------------------------------------------------
>                 Key: DERBY-4417
>                 URL: https://issues.apache.org/jira/browse/DERBY-4417
>             Project: Derby
>          Issue Type: Sub-task
>          Components: Replication, Test
>    Affects Versions:
>            Reporter: Ole Solberg
>            Assignee: Ole Solberg
>         Attachments: DERBY-4417_P1_p1.diff, DERBY-4417_P2_p1.diff.txt, DERBY_distr_repl_A.diff.txt,
DERBY_distr_repl_B.diff.txt, DERBY_distr_repl_C-replicationtest.properties, DERBY_distr_repl_D-start_script.txt

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message