Issue Details (XML | Word | Printable)

Key: DERBY-4085
Type: Sub-task Sub-task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Kristian Waagan
Reporter: Kristian Waagan
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby
DERBY-646

Improve testing of the in-memory back end

Created: 09/Mar/09 04:03 PM   Updated: 16/Jun/09 10:23 AM
Return to search
Component/s: Test
Affects Version/s: 10.5.1.1
Fix Version/s: 10.6.0.0

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works buildbreak.diff 2009-03-13 02:20 PM Knut Anders Hatlen 0.7 kB
File Licensed for inclusion in ASF works derby-4085-1a-basic_tests.diff 2009-03-11 12:22 PM Kristian Waagan 16 kB
File Licensed for inclusion in ASF works derby-4085-1a-basic_tests.stat 2009-03-11 12:22 PM Kristian Waagan 0.4 kB
File Licensed for inclusion in ASF works derby-4085-1b-basic_tests.diff 2009-03-13 11:34 AM Kristian Waagan 16 kB
File Licensed for inclusion in ASF works derby-4085-2a-mog_func_test.diff 2009-03-23 03:23 PM Kristian Waagan 39 kB
File Licensed for inclusion in ASF works derby-4085-2a-mog_func_test.stat 2009-03-23 03:23 PM Kristian Waagan 0.5 kB
File Licensed for inclusion in ASF works derby-4085-3a-enable_in_suitesAll.diff 2009-03-27 04:37 PM Kristian Waagan 0.9 kB
File Licensed for inclusion in ASF works derby-4085-4a-improved_assertion_reporting.diff 2009-03-31 09:42 AM Kristian Waagan 0.7 kB
File Licensed for inclusion in ASF works derby-4085-5a-report_seed_on_failure.diff 2009-04-02 08:37 AM Kristian Waagan 3 kB
File Licensed for inclusion in ASF works derby-4085-6a-fixed_seed.diff 2009-05-04 05:29 AM Kristian Waagan 0.8 kB
Issue Links:
Reference
 

Resolution Date: 16/Jun/09 10:23 AM


 Description  « Hide
The in-memory back end should be tested as part of the standard regression tests.

The following is a good start:
 o simple create / boot test
 o create in-memory db, backup, restore with default storage engine, modify, restore with createFrom into memory again
 o add the functional test(s) written by Cheng
 o more unit tests

On a longer term, we should consider to add the possibility to run all or a subset of the general regression tests with the in-memory back end.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #753210 Fri Mar 13 11:33:11 UTC 2009 kristwaa DERYB-4085: Improve testing of the in-memory back end.
Added the first basic tests for the in-memory back end.
One test just tries to connect to a non-existing database with the memory
protocol. The other creates a in-memory database, adds a table, creates a
backup, adds another row with the default storage engine (directory) and
finally recreates a in-memory database and reads all rows from the table.
The tests are not enabled as part of any larger suite yet.
Patch file: DERBY-4085-1b-basic_tests.diff
Files Changed
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/_Suite.java
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/build.xml
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb
MODIFY /db/derby/code/trunk/java/testing/build.xml
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/BasicInMemoryDbTest.java

Repository Revision Date User Message
ASF #753279 Fri Mar 13 14:14:40 UTC 2009 kahatlen DERBY-4085: Fixed broken build

BasicInMemoryDbTest uses DriverManager so it must be compiled against
java14compile.classpath
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/build.xml

Repository Revision Date User Message
ASF #759181 Fri Mar 27 15:45:59 UTC 2009 kristwaa DERBY-4085: Improve testing of the in-memory back end.
Adds a functional test (mixture-of-Gaussian distribution).
The calculations are carried out both in Java and though SQL, then compared.
The tests are not yet compatible with JSR 169 / JavaME.

Patch contributed by Cheng Che Chen (chatom).
Minor modifications by Kristian Waagan.

Patch file: DERBY-4085-2a-mog_func_test.diff
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/_Suite.java
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/ClusMog.java
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/GenMog.java
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/ClusMogSQL.java
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/SampMog.java

Repository Revision Date User Message
ASF #759211 Fri Mar 27 16:36:01 UTC 2009 kristwaa DERBY-4085: Improve testing of the in-memory back end.
Enabled the in-memory back end specific tests in suites.All.

Patch file: DERBY-4085-3a-enable_in_suitesAll.diff
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java

Repository Revision Date User Message
ASF #760380 Tue Mar 31 09:40:26 UTC 2009 kristwaa DERBY-4085: Improve testing of the in-memory back end.
Added better error reporting to see if we have to increase the tolerance
or if there is something else wrong with the test.

Patch file: DERBY-4085-4a-improved_assertion_reporting.diff
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java

Repository Revision Date User Message
ASF #761204 Thu Apr 02 08:36:01 UTC 2009 kristwaa DERBY-4085: Improve testing of the in-memory back end.
Report the seed on a failure, so that the run can be repeated.

Patch file: DERBY-4085-5a-report_seed_on_failure.diff
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java

Repository Revision Date User Message
ASF #761508 Fri Apr 03 03:01:13 UTC 2009 myrnavl DERBY-4085; fix javadoc warning
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/ClusMog.java

Repository Revision Date User Message
ASF #771180 Mon May 04 05:25:35 UTC 2009 kristwaa DERBY-4085: Improve testing of the in-memory back end.
Fixed the seed used by MogTest, due to instability in the test.
This is a temporary stabilization, the root cause should be identified.

Patch file: DERBY-4085-6a-fixed_seed.diff
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java