Derby
  1. Derby
  2. DERBY-4922

failure in tests using encryption - fails to rename certain database files

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 10.7.1.1, 10.7.1.4
    • Fix Version/s: 10.7.1.4
    • Component/s: Test
    • Environment:
      windows XP
    • Urgency:
      Normal
    • Bug behavior facts:
      Regression Test Failure

      Description

      I've seen 2 test failures related to an attempt by derby to rename database files;

      1: during nightly tests (11/29/2010; svn sync-ed up to 1040394, so 10.7.1.2) with ibm 1.6 SR8, derbyall (dir edited to shorter name & inserted line breaks for readability)

          • Start: encryptDatabase jdk1.6.0 encryptionAll:encryptionOFB 2010-11-30 00:41:14 ***
            74 del
            < 0 rows inserted/updated/deleted
            74a74,76
            > ERROR 38000: The exception 'org.apache.derby.iapi.error.PassThroughException:
            ERROR XBM0S: Unable to rename
            file 'C:\test\\derbyall\encryptionAll\encryptionOFB\encryptDatabase\wombat\service.properties'
            to 'C:\test\derbyall\encryptionAll\encryptionOFB\encryptDatabase\wombat\service.propertiesold''
            was thrown while evaluating an expression.
            > ERROR XJ001: Java exception: 'ERROR XBM0S: Unable to rename
            file 'C:\test\derbyall\encryptionAll\encryptionOFB\encryptDatabase\wombat\service.properties'
            to 'C:\test\derbyall\encryptionAll\encryptionOFB\encryptDatabase\wombat\service.propertiesold':
            org.apache.derby.iapi.error.PassThroughException'.
            > ERROR XBM0S: Unable to rename
            file 'C:\test\derbyall\encryptionAll\encryptionOFB\encryptDatabase\wombat\service.properties'
            to 'C:\test\derbyall\encryptionAll\encryptionOFB\encryptDatabase\wombat\service.propertiesold'
            .....(many more resulting diffs)...

      2: during DbpPowersTest in test cycle of 10.7.1.1 (build 1040133), with ibm 1.5. SR11 FP1:
      1) testReEncrypt(org.apache.derbyTesting.functionTests.tests.jdbcapi.DboPowersTest)
      junit.framework.AssertionFailedError:
      (re)encryption, no authentication expected:<null> but was:
      <java.sql.SQLException: DERBY SQL error: SQLCODE: -1, SQLSTATE: XJ040,
      SQLERRMC: Failed to start database 'singleUse/oneuse1e'
      with class loader sun.misc.Launcher$AppClassLoader@2c0a2c0a, see the next exception for details.::
      SQLSTATE: XJ001Java exception:
      'ERROR XBM0S: Unable to rename file 'C:\test\system\singleUse\oneuse1e\service.properties' to
      'C:\test\system\singleUse\oneuse1e\service.propertiesold':
      org.apache.derby.iapi.error.PassThroughException'.::SQLSTATE: XBM0S
      Unable to rename file 'C:\test\system\singleUse\oneuse1e\service.properties'
      to 'C:\test\system\singleUse\oneuse1e\service.propertiesold'>
      at org.apache.derbyTesting.functionTests.tests.jdbcapi.DboPowersTest.vetAttempt(DboPowersTest.java:751)
      at org.apache.derbyTesting.functionTests.tests.jdbcapi.DboPowersTest.vetEncryptionAttempt(DboPowersTest.java:586)
      at org.apache.derbyTesting.functionTests.tests.jdbcapi.DboPowersTest.testReEncrypt(DboPowersTest.java:510)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)

      I believe the problems are related to the removeDir issues of DERBY-4905 and DERBY-4915.

        Issue Links

          Activity

          Gavin made changes -
          Workflow jira [ 12538609 ] Default workflow, editable Closed status [ 12796969 ]
          Myrna van Lunteren made changes -
          Link This issue is duplicated by DERBY-5188 [ DERBY-5188 ]
          Myrna van Lunteren made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 10.7.1.4 [ 12315902 ]
          Resolution Duplicate [ 3 ]
          Myrna van Lunteren made changes -
          Link This issue is related to DERBY-5123 [ DERBY-5123 ]
          Myrna van Lunteren made changes -
          Labels derby_triage10_8
          Urgency Normal
          Rick Hillegas made changes -
          Link This issue is related to DERBY-4916 [ DERBY-4916 ]
          Myrna van Lunteren made changes -
          Link This issue is related to DERBY-4915 [ DERBY-4915 ]
          Myrna van Lunteren made changes -
          Field Original Value New Value
          Link This issue is related to DERBY-4905 [ DERBY-4905 ]
          Myrna van Lunteren created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Myrna van Lunteren
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development