db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julius Stroffek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2636) ImportExportProcedureTestjunit.framework.AssertionFailedError encountered running full junit test suite
Date Mon, 14 May 2007 10:52:16 GMT

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

Julius Stroffek commented on DERBY-2636:

The above exception is thrown when DropDatabaseSetup is not able to delete the file 'extinout\t1.dat'.

I observed similar problem some time ago when I ran junit tests on NFS file system. When I
ran tests it failed on the assertion testing the delete of an empty directory (at DropDatabaseSetup.java:134).
When I had a look to the directory I found a file named '.nfsXXXX' there. I discussed this
with some NFS guys and discovered that when NFS is going to delete the file that is already
opened it will rename the file to '.nfsXXXX' and keep it in the same directory.

When you use POSIX compliant file system (NFS is not POSIX compliant, I had no idea about
FAT and NTFS) and you are trying to delete a file that is already opened, the file will be
deleted from the directory and also the handle will still remain valid. Once you close the
handle the file will get deleted from the disk.

Do you have NTFS or FAT32 filesystem? What happens when you try to delete an open file? I
believe it will fail.

I think that ImportExportProcedureTest would probably keep the file 'extinout\t1.dat' open
for some reason.

> ImportExportProcedureTestjunit.framework.AssertionFailedError encountered running full
junit test suite
> -------------------------------------------------------------------------------------------------------
>                 Key: DERBY-2636
>                 URL: https://issues.apache.org/jira/browse/DERBY-2636
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>    Affects Versions:
>         Environment: m1_ibm15:42>sysinfo
> ------------------ Java Information ------------------
> Java Version:    1.5.0
> Java Vendor:     IBM Corporation
> Java home:       c:\p4\m1\ibm15\jre
> Java classpath:  c:/p4/m1/classes;c:/p4/m1/tools/java/jdbctests.zip;c:/p4/m1/too
> ls/java/jakarta-oro-2.0.8.jar;c:/p4/m1/tools/java/jgl3.1.0.jar;c:/p4/m1/tools/ja
> va/jndi/providerutil.jar;c:/p4/m1/tools/java/jndi/ldap.jar;c:/p4/m1/tools/java/j
> ndi/jndi.jar;c:/p4/m1/tools/java/jnl1.0F.zip;c:/p4/m1/tools/java/junit.jar;c:/p4
> /m1/tools/java/servlet-2_2b.jar;c:/p4/m1/tools/java/xslt4j-2_5_0/xercesImpl.jar;
> c:/p4/m1/tools/java/xslt4j-2_5_0/xml-apis.jar;c:/p4/m1/tools/java/xslt4j-2_5_0/x
> alan.jar
> OS name:         Windows XP
> OS architecture: x86
> OS version:      5.1 build 2600 Service Pack 2
> Java user name:  mikem
> Java user home:  C:\Documents and Settings\Administrator
> Java user dir:   C:\p4\m1\systest\out\junit
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.5
> --------- Derby Information --------
> JRE - JDBC: J2SE 5.0 - JDBC 3.0
> [C:\p4\m1\classes] alpha - (1)
>            Reporter: Mike Matrigali
>         Attachments: derby.log
> Encountered the following error when running the full junit test suite:
> 2) ImportExportProcedureTestjunit.framework.AssertionFailedError: extinout\t1.da
> t
>     at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDir(DropDatabaseSet
> up.java:129)
>     at org.apache.derbyTesting.junit.DropDatabaseSetup.access$000(DropDatabaseSe
> tup.java:38)
>     at org.apache.derbyTesting.junit.DropDatabaseSetup$1.run(DropDatabaseSetup.j
> ava:104)
>     at java.security.AccessController.doPrivileged(AccessController.java:193)
>     at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDirectory(DropDatab
> aseSetup.java:101)
>     at org.apache.derbyTesting.junit.SupportFilesSetup.tearDown(SupportFilesSetu
> p.java:127)
>     at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
>     at junit.extensions.TestSetup.run(TestSetup.java:23)

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

View raw message