File: README.testproperties

package info (click to toggle)
derby 10.14.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 78,896 kB
  • sloc: java: 691,930; sql: 42,686; xml: 20,511; sh: 3,373; sed: 96; makefile: 60
file content (120 lines) | stat: -rw-r--r-- 5,089 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to you under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

${user.dir}/replicationtest.properties
**************************************

The test framework for replication testing relies on the file
'replicationtest.properties' which must be located in 'user.dir'.

The replication test framework assumes tests are run from jar files.

The replication test framework allows different jars to be specified for 
the master server, the slave server and the server used when verifying
database consistency of the slave database after completing the 
replication itself.


The following properties are used by the replication test framework:


Derby server hosts and port numbers:
------------------------------------
test.masterServerHost - where to run the master server
test.masterServerPort

test.slaveServerHost - where to run the slave server
test.slaveServerPort

test.slaveReplPort - which port to use on slave server for receiving replication data from master.

test.testClientHost - host where the replication test is to be run.


Derby master and slave database locations:
-----------------------------------------
test.master.databasepath - absolute path specifying where on master server the test database should reside.
test.slave.databasepath - ditto for slave
test.databaseName - name of database to be replicated.
 - the full database path name on the master / slave will be
   <test.master.databasepath>/db_master/<test.databaseName> /
   <test.slave.databasepath>/db_slave/<test.databaseName>


Replication tests and associated verification:
----------------------------------------------
test.replicationTest - either
  a sql script - e.g. /home/os136789/Replication/testing/insert.sql or 
  a JUnit test - e.g. org.apache.derbyTesting.functionTests.tests.replicationTests.SimplePerfTest
test.replicationVerify - the verification "test" to be run against the slave server after the
  test.replicationTest is completed.

test.derbyTestingJar - jar files of Derby version where tests are available
jvm.version - jvm version used by test client(s)

jvm.masterversion - jvm version used by master server
jvm.slaveversion  - ditto for slave

derby.version - Derby version used.
  Observe that while using the PoC (Proof of concept) code we have 
  specific variants of the Derby code for master and slave respectivly - both
  being modifications to the "plain" Derby code.
  Thus while using the PoC derby.version represents the Derby used by the test client(s),
  and load clients.

derby.masterversion - Specific variant of Derby for master PoC.
derby.slaveversion  - ditto for slave

junit_jar - JUnit jars to use in tests and loads.

test.sleepTime

test.runUnReplicated - set to true to include a test run without replication:
  Used for simple (performance) comparisons.


Load specific properties:
------------------------
test.sqlLoadInit - sql script to initialize load client database. 
                   NB! FIXME! must be specific per load id below!

Properties that specifies if load clients are to be started at predefined states 
during the replication process:
test.masterPreRepl   - start a load client against the master server before 'startreplication'.
test.masterPostRepl  - start a load client against the master server when 'startreplication' is done.
test.slavePreSlave   - start a load client against the slave server when 'startreplication' is done,
                       but before 'startslave' is done.
test.masterPostSlave - start a load client against the master server after 'startslave' is done.
test.slavePostSlave  - start a load client against the slave server after 'startslave' is done.
(I.e. test.<load id>)

For each of these load "id"s we have properties specifying
"test." + id + ".load"       - the sql script or JUnit test to use for load.
"test." + id + ".database"   - database name in <test.master.databasepath>/db_master/ or 
                                                <test.slave.databasepath>/db_slave/
"test." + id + ".existingDB" - whether the database exists or should be created before running the load.
"test." + id + ".clientHost" - the host to run the load client.

General:
--------
test.testUser
test.printDebug
test.showSysinfo

-------------------------------
See java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/replicationtest.properties
for an example.