[ 
https://issues.apache.org/jira/browse/DERBY-2931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512121
 ] 

Knut Anders Hatlen commented on DERBY-2931:
-------------------------------------------

I found that the bug can be reproduced with these three steps:

1. Create a database with 10.2:

ij version 10.2
ij> connect 'jdbc:derby:db;create=true';
ij> exit;

2. Connect to the same database with 10.3 in soft upgrade mode and create a 
table, then exit ij:

ij version 10.3
ij> connect 'jdbc:derby:db';
ij> create table t (x int);
0 rows inserted/updated/deleted
ij> exit;

3. Connect with 10.3 again and try to fetch the contents of the table:

ij version 10.3
ij> connect 'jdbc:derby:db';
ij> select * from t;
ERROR XSDA7: Restore of a serializable or SQLData object of class , attempted 
to read more data than was originally stored
ERROR XJ001: Java exception: ': java.io.EOFException'.

> jdbcapi/ConcurrencyTest not able to drop table in soft upgrade mode
> -------------------------------------------------------------------
>
>                 Key: DERBY-2931
>                 URL: https://issues.apache.org/jira/browse/DERBY-2931
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.3.1.1
>         Environment: Soft upgrade 
>            Reporter: Øystein Grøvlen
>
> 1. Created at database system/wombat with ij version 10.2
> 2. Ran jdbcapi/ConcurrencyTest with same current directory. All test cases 
> but the first test fail with:
> 30) 
> testTruncateDuringScan(org.apache.derbyTesting.functionTests.tests.jdbcapi.ConcurrencyTest)junit.framework.ComparisonFailure:
>  'drop table t1' failed with unexpected SQL State expected:<[42Y55]> but 
> was:<[XSDA7]>
>         at 
> org.apache.derbyTesting.functionTests.tests.jdbcapi.SURDataModelSetup.createDataModel(SURDataModelSetup.java:70)
>         at 
> org.apache.derbyTesting.functionTests.tests.jdbcapi.SURDataModelSetup.createDataModel(SURDataModelSetup.java:125)
>         at 
> org.apache.derbyTesting.functionTests.tests.jdbcapi.ConcurrencyTest.setUp(ConcurrencyTest.java:54)
>         at 
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
>         at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>         at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>         at junit.extensions.TestSetup.run(TestSetup.java:25)
>         at 
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>         at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>         at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>         at junit.extensions.TestSetup.run(TestSetup.java:25)
>         at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>         at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>         at junit.extensions.TestSetup.run(TestSetup.java:25)
>         at 
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)

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

Reply via email to