db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John H. Embretsen (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-2479) ArrayIndexOutOfBoundsException in system.nstest if derby.nstest.backupRestore=false
Date Thu, 22 Mar 2007 10:33:32 GMT
ArrayIndexOutOfBoundsException in system.nstest if derby.nstest.backupRestore=false
-----------------------------------------------------------------------------------

                 Key: DERBY-2479
                 URL: https://issues.apache.org/jira/browse/DERBY-2479
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.3.0.0
         Environment: derby.nstest.backupRestore=false
            Reporter: John H. Embretsen


As described in a comment for DERBY-2248, there is a bug in the Network Server system test
(org.apache.derbyTesting.system.nstest) which is triggered if the  derby.nstest.backupRestore
property is set to false when running the test:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 71
            at org.apache.derbyTesting.system.nstest.NsTest.main(NsTest.java:443)

>From https://issues.apache.org/jira/browse/DERBY-2248#action_12474445:

NsTest.java, line 429->: while (numTestThread < maxTestThreads) { ... 

It seems that numTestThread will always be equal to maxTestThreads after one
iteration, except when derby.nstest.backupRestore=false, in which case
the entire loop will re-run, numTestThread will be incremented far above
maxTestThreads, and you end up with an ArrayIndexOutOfBoundsException.


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


Mime
View raw message