You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kristian Waagan (JIRA)" <ji...@apache.org> on 2010/11/24 21:18:15 UTC

[jira] Created: (DERBY-4916) Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory

Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory
-----------------------------------------------------------------------------

                 Key: DERBY-4916
                 URL: https://issues.apache.org/jira/browse/DERBY-4916
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.7.1.0
         Environment: o java -version
   java version "1.5.0_24"
   Java(TM) Platform, Standard Edition for Business (build 1.5.0_24-b02)
   Oracle JRockit(R) (build R28.0.1-21-133393-1.5.0_24-20100512-2132-windows-ia32, compiled mode)
o OS:
   Windows Vista Home Premium SP2
            Reporter: Kristian Waagan


The upgrade test fails in the teardown phase because a database directory cannot be deleted.
Happens for a varying number of version combinations, I've seen from one to five failed tests (out of 2496 tests) so far. See attached files for some examples.

The error is reproducible running the upgrade suite standalone.

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


[jira] Commented: (DERBY-4916) Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966026#action_12966026 ] 

Kristian Waagan commented on DERBY-4916:
----------------------------------------

I tried running with -Dderby.tests.trace=true and I also changed the removeDir method in DropDatabaseSetup to use PrivilegedFileOpsForTests.persistentRecursiveDelete, but then I was unable to reproduce the error on trunk. I guess I have to run some more tests, and I can at least enable tracing and run with 10.7 RC1.

> Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory
> -----------------------------------------------------------------------------
>
>                 Key: DERBY-4916
>                 URL: https://issues.apache.org/jira/browse/DERBY-4916
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.7.1.1
>         Environment: o 1.Oracle JRockit(R) (build R28.0.1-21-133393-1.5.0_24-20100512-2132-windows-ia32, compiled mode)
>   2. Sun JDK 1.6.0_20, Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
> o OS:
>    Windows Vista Home Premium SP2
>            Reporter: Kristian Waagan
>         Attachments: example1.txt, example2.txt
>
>
> The upgrade test fails in the teardown phase because a database directory cannot be deleted.
> Happens for a varying number of version combinations, I've seen from one to five failed tests (out of 2496 tests) so far. See attached files for some examples.
> The error is reproducible running the upgrade suite standalone.

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


[jira] Updated: (DERBY-4916) Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Waagan updated DERBY-4916:
-----------------------------------

    Environment: 
o 1.Oracle JRockit(R) (build R28.0.1-21-133393-1.5.0_24-20100512-2132-windows-ia32, compiled mode)
  2. Sun JDK 1.6.0_20, Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
o OS:
   Windows Vista Home Premium SP2

  was:
o java -version
   java version "1.5.0_24"
   Java(TM) Platform, Standard Edition for Business (build 1.5.0_24-b02)
   Oracle JRockit(R) (build R28.0.1-21-133393-1.5.0_24-20100512-2132-windows-ia32, compiled mode)
o OS:
   Windows Vista Home Premium SP2


Saw the issue on Sun JDK too. When running these tests, I'm downloading the old jars (automatically) from Apache.

> Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory
> -----------------------------------------------------------------------------
>
>                 Key: DERBY-4916
>                 URL: https://issues.apache.org/jira/browse/DERBY-4916
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.7.1.0
>         Environment: o 1.Oracle JRockit(R) (build R28.0.1-21-133393-1.5.0_24-20100512-2132-windows-ia32, compiled mode)
>   2. Sun JDK 1.6.0_20, Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
> o OS:
>    Windows Vista Home Premium SP2
>            Reporter: Kristian Waagan
>         Attachments: example1.txt, example2.txt
>
>
> The upgrade test fails in the teardown phase because a database directory cannot be deleted.
> Happens for a varying number of version combinations, I've seen from one to five failed tests (out of 2496 tests) so far. See attached files for some examples.
> The error is reproducible running the upgrade suite standalone.

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


[jira] [Commented] (DERBY-4916) Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory

Posted by "Kathey Marsden (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085386#comment-13085386 ] 

Kathey Marsden commented on DERBY-4916:
---------------------------------------

on Windows with IBM 1.5 on August 12, 2011 with revision 10.9.0.0 alpha - (1157307)


There was 1 failure:
1) Upgrade Tests from 10.8.1.2junit.framework.AssertionFailedError: Failed to delete 3 files (root=C:\jartest\JarResults.2011-08-12\ibm15_suites.All\system\singleUse\oneuseb4: C:\jartest\JarResults.2011-08-12\ibm15_suites.All\system\singleUse\oneuseb4\seg0\c640.dat (isDir=false, canRead=true, canWrite=true, size=8192), C:\jartest\JarResults.2011-08-12\ibm15_suites.All\system\singleUse\oneuseb4\seg0 (isDir=true, canRead=true, canWrite=true, size=0), C:\jartest\JarResults.2011-08-12\ibm15_suites.All\system\singleUse\oneuseb4 (isDir=true, canRead=true, canWrite=true, size=0)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertDirectoryDeleted(BaseJDBCTestCase.java:1526)
	at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDir(DropDatabaseSetup.java:119)
	at org.apache.derbyTesting.junit.DropDatabaseSetup.access$000(DropDatabaseSetup.java:35)
	at org.apache.derbyTesting.junit.DropDatabaseSetup$1.run(DropDatabaseSetup.java:105)
	at java.security.AccessController.doPrivileged(AccessController.java:192)
	at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDirectory(DropDatabaseSetup.java:102)
	at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDirectory(DropDatabaseSetup.java:98)
	at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDatabase(DropDatabaseSetup.java:91)
	at org.apache.derbyTesting.junit.DropDatabaseSetup.tearDown(DropDatabaseSetup.java:77)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
	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)
	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)
	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)
	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)




> Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory
> -----------------------------------------------------------------------------
>
>                 Key: DERBY-4916
>                 URL: https://issues.apache.org/jira/browse/DERBY-4916
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.7.1.1
>         Environment: o 1.Oracle JRockit(R) (build R28.0.1-21-133393-1.5.0_24-20100512-2132-windows-ia32, compiled mode)
>   2. Sun JDK 1.6.0_20, Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
> o OS:
>    Windows Vista Home Premium SP2
>            Reporter: Kristian Waagan
>              Labels: derby_triage10_8
>         Attachments: example1.txt, example2.txt
>
>
> The upgrade test fails in the teardown phase because a database directory cannot be deleted.
> Happens for a varying number of version combinations, I've seen from one to five failed tests (out of 2496 tests) so far. See attached files for some examples.
> The error is reproducible running the upgrade suite standalone.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DERBY-4916) Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Myrna van Lunteren updated DERBY-4916:
--------------------------------------

    Urgency: Normal
     Labels: derby_triage10_8  (was: )

> Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory
> -----------------------------------------------------------------------------
>
>                 Key: DERBY-4916
>                 URL: https://issues.apache.org/jira/browse/DERBY-4916
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.7.1.1
>         Environment: o 1.Oracle JRockit(R) (build R28.0.1-21-133393-1.5.0_24-20100512-2132-windows-ia32, compiled mode)
>   2. Sun JDK 1.6.0_20, Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
> o OS:
>    Windows Vista Home Premium SP2
>            Reporter: Kristian Waagan
>              Labels: derby_triage10_8
>         Attachments: example1.txt, example2.txt
>
>
> The upgrade test fails in the teardown phase because a database directory cannot be deleted.
> Happens for a varying number of version combinations, I've seen from one to five failed tests (out of 2496 tests) so far. See attached files for some examples.
> The error is reproducible running the upgrade suite standalone.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DERBY-4916) Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Waagan updated DERBY-4916:
-----------------------------------

    Attachment: example2.txt
                example1.txt

Attaching some example output from JUnit ('example1.txt' and 'example2.txt').

> Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory
> -----------------------------------------------------------------------------
>
>                 Key: DERBY-4916
>                 URL: https://issues.apache.org/jira/browse/DERBY-4916
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.7.1.0
>         Environment: o java -version
>    java version "1.5.0_24"
>    Java(TM) Platform, Standard Edition for Business (build 1.5.0_24-b02)
>    Oracle JRockit(R) (build R28.0.1-21-133393-1.5.0_24-20100512-2132-windows-ia32, compiled mode)
> o OS:
>    Windows Vista Home Premium SP2
>            Reporter: Kristian Waagan
>         Attachments: example1.txt, example2.txt
>
>
> The upgrade test fails in the teardown phase because a database directory cannot be deleted.
> Happens for a varying number of version combinations, I've seen from one to five failed tests (out of 2496 tests) so far. See attached files for some examples.
> The error is reproducible running the upgrade suite standalone.

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


[jira] Commented: (DERBY-4916) Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965476#action_12965476 ] 

Myrna van Lunteren commented on DERBY-4916:
-------------------------------------------

It seems you're running without -Dderby.tests.trace=true...I ran with, and could identify the failing test to be more often than not SqlRolesTest fixture - see DERBY-4905.
I wonder, as you say this reproduces for you by running just the upgrade suite, if you would see the same if you were to run with that property on.
I used the -DderbyTesting.oldReleasePaht property for my tests.

All the same, I saw a similar test failure, not in the upgrade tests, but in o.a.d.functionTests.tests.store.OfflineBackupTest.testCreateFromRestoreFrom (trying to remove log dir) with ibm 1.5.

> Upgrade tests fail in DropDatabaseSetup.tearDown unable to delete a directory
> -----------------------------------------------------------------------------
>
>                 Key: DERBY-4916
>                 URL: https://issues.apache.org/jira/browse/DERBY-4916
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.7.1.1
>         Environment: o 1.Oracle JRockit(R) (build R28.0.1-21-133393-1.5.0_24-20100512-2132-windows-ia32, compiled mode)
>   2. Sun JDK 1.6.0_20, Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
> o OS:
>    Windows Vista Home Premium SP2
>            Reporter: Kristian Waagan
>         Attachments: example1.txt, example2.txt
>
>
> The upgrade test fails in the teardown phase because a database directory cannot be deleted.
> Happens for a varying number of version combinations, I've seen from one to five failed tests (out of 2496 tests) so far. See attached files for some examples.
> The error is reproducible running the upgrade suite standalone.

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