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 "Rick Hillegas (Created) (JIRA)" <ji...@apache.org> on 2011/10/11 18:27:12 UTC

[jira] [Created] (DERBY-5455) assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests

assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests
------------------------------------------------------------------------------------

                 Key: DERBY-5455
                 URL: https://issues.apache.org/jira/browse/DERBY-5455
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.8.2.2
         Environment: mac os x 10.6.8, Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3515)
            Reporter: Rick Hillegas


Near the end of the JUnit tests on the 10.8.2.2 RC, I saw the following diagnostic on the console. Don't know what test this refers to:

.........................................
.........................................
.........................................
.......................<assertDirectoryDeleted> attempt 1 left 3 files/dirs behind: 0=/Users/rh161140/derby/dummy/testRun/db_master/wombat/log 1=/Users/rh161140/derby/dummy/testRun/db_master/wombat 2=/Users/rh161140/derby/dummy/testRun/db_master
................
Time: 4,221.94


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DERBY-5455) assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests

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

Rick Hillegas commented on DERBY-5455:
--------------------------------------

Hi Myrna, I'm not planning any work on this issue. Thanks.
                
> assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-5455
>                 URL: https://issues.apache.org/jira/browse/DERBY-5455
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.2.2
>         Environment: mac os x 10.6.8, Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3515)
>            Reporter: Rick Hillegas
>            Priority: Minor
>              Labels: derby_triage10_10
>
> Near the end of the JUnit tests on the 10.8.2.2 RC, I saw the following diagnostic on the console. Don't know what test this refers to:
> .........................................
> .........................................
> .........................................
> .......................<assertDirectoryDeleted> attempt 1 left 3 files/dirs behind: 0=/Users/rh161140/derby/dummy/testRun/db_master/wombat/log 1=/Users/rh161140/derby/dummy/testRun/db_master/wombat 2=/Users/rh161140/derby/dummy/testRun/db_master
> ................
> Time: 4,221.94

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DERBY-5455) assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests

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

Rick Hillegas commented on DERBY-5455:
--------------------------------------

That sounds like a good suggestion to me. The message seems like noise to me if no-one is interested in tracking when a second attempt is needed to delete the cruft.

It sounds as though the test itself will fail if we can't delete the cruft on the second attempt. I think that means that the existing machinery will then tell us which test tripped across the problem. That addresses my other puzzlement with this diagnostic: I couldn't see which test was involved. Thanks.
                
> assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-5455
>                 URL: https://issues.apache.org/jira/browse/DERBY-5455
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.2.2
>         Environment: mac os x 10.6.8, Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3515)
>            Reporter: Rick Hillegas
>            Priority: Minor
>
> Near the end of the JUnit tests on the 10.8.2.2 RC, I saw the following diagnostic on the console. Don't know what test this refers to:
> .........................................
> .........................................
> .........................................
> .......................<assertDirectoryDeleted> attempt 1 left 3 files/dirs behind: 0=/Users/rh161140/derby/dummy/testRun/db_master/wombat/log 1=/Users/rh161140/derby/dummy/testRun/db_master/wombat 2=/Users/rh161140/derby/dummy/testRun/db_master
> ................
> Time: 4,221.94

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5455) assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests

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

Myrna van Lunteren updated DERBY-5455:
--------------------------------------

    Labels: derby_triage10_10  (was: )
    
> assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-5455
>                 URL: https://issues.apache.org/jira/browse/DERBY-5455
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.2.2
>         Environment: mac os x 10.6.8, Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3515)
>            Reporter: Rick Hillegas
>            Priority: Minor
>              Labels: derby_triage10_10
>
> Near the end of the JUnit tests on the 10.8.2.2 RC, I saw the following diagnostic on the console. Don't know what test this refers to:
> .........................................
> .........................................
> .........................................
> .......................<assertDirectoryDeleted> attempt 1 left 3 files/dirs behind: 0=/Users/rh161140/derby/dummy/testRun/db_master/wombat/log 1=/Users/rh161140/derby/dummy/testRun/db_master/wombat 2=/Users/rh161140/derby/dummy/testRun/db_master
> ................
> Time: 4,221.94

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DERBY-5455) assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests

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

Kristian Waagan commented on DERBY-5455:
----------------------------------------

I don't think anyone is collecting statistics on this.

Maybe the level of noise is too high. Would it be an idea to only start printing warnings after the second attempt fails?
At that point, all files have been attempted deleted once, and then another attempt was made after sleeping for two seconds. We could loose out on traces after situations where we delete booted databases (or at least where the database is in progress of being shut down), but that may not be a problem.  Real problems, for instance where we fail to close file handles, wouldn't be affected by such a change.
                
> assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-5455
>                 URL: https://issues.apache.org/jira/browse/DERBY-5455
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.2.2
>         Environment: mac os x 10.6.8, Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3515)
>            Reporter: Rick Hillegas
>            Priority: Minor
>
> Near the end of the JUnit tests on the 10.8.2.2 RC, I saw the following diagnostic on the console. Don't know what test this refers to:
> .........................................
> .........................................
> .........................................
> .......................<assertDirectoryDeleted> attempt 1 left 3 files/dirs behind: 0=/Users/rh161140/derby/dummy/testRun/db_master/wombat/log 1=/Users/rh161140/derby/dummy/testRun/db_master/wombat 2=/Users/rh161140/derby/dummy/testRun/db_master
> ................
> Time: 4,221.94

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5455) assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests

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

Kristian Waagan updated DERBY-5455:
-----------------------------------

    Priority: Minor  (was: Major)

That message means that assertDirectoryDeleted failed to delete three files on the first attempt to delete the db_master directory (which is the master database used by the replication test I assume), but that it succeeded on the second attempt.
If assertDirectoryDeleted is unable to delete all files including the directory itself after the maximum number of attempts, it will fail the test.
I adjusted the priority to minor.

There is also DERBY-5386 for a different, but related, problem in the replication test. The code looks sound, but obviously something isn't quite right...

                
> assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-5455
>                 URL: https://issues.apache.org/jira/browse/DERBY-5455
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.2.2
>         Environment: mac os x 10.6.8, Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3515)
>            Reporter: Rick Hillegas
>            Priority: Minor
>
> Near the end of the JUnit tests on the 10.8.2.2 RC, I saw the following diagnostic on the console. Don't know what test this refers to:
> .........................................
> .........................................
> .........................................
> .......................<assertDirectoryDeleted> attempt 1 left 3 files/dirs behind: 0=/Users/rh161140/derby/dummy/testRun/db_master/wombat/log 1=/Users/rh161140/derby/dummy/testRun/db_master/wombat 2=/Users/rh161140/derby/dummy/testRun/db_master
> ................
> Time: 4,221.94

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DERBY-5455) assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests

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

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

Rick, Kristian, is there any further work expected on this issue?
                
> assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-5455
>                 URL: https://issues.apache.org/jira/browse/DERBY-5455
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.2.2
>         Environment: mac os x 10.6.8, Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3515)
>            Reporter: Rick Hillegas
>            Priority: Minor
>
> Near the end of the JUnit tests on the 10.8.2.2 RC, I saw the following diagnostic on the console. Don't know what test this refers to:
> .........................................
> .........................................
> .........................................
> .......................<assertDirectoryDeleted> attempt 1 left 3 files/dirs behind: 0=/Users/rh161140/derby/dummy/testRun/db_master/wombat/log 1=/Users/rh161140/derby/dummy/testRun/db_master/wombat 2=/Users/rh161140/derby/dummy/testRun/db_master
> ................
> Time: 4,221.94

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (DERBY-5455) assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests

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

Kristian Waagan closed DERBY-5455.
----------------------------------

       Resolution: Not A Problem
    Fix Version/s: 10.10.0.0

Resolving this as Not A Problem and closing the issue.

Separate issues should be filed for tests that cause the diagnostics to be printed, as it is usually an 
indication that something is wrong (i.e. leaked file handles, or deleting a booted database directory).

I don't think these diagnostics are frequent enough (currently) to warrant a more formal collection mechanism.
                
> assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-5455
>                 URL: https://issues.apache.org/jira/browse/DERBY-5455
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.2.2
>         Environment: mac os x 10.6.8, Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3515)
>            Reporter: Rick Hillegas
>            Priority: Minor
>              Labels: derby_triage10_10
>             Fix For: 10.10.0.0
>
>
> Near the end of the JUnit tests on the 10.8.2.2 RC, I saw the following diagnostic on the console. Don't know what test this refers to:
> .........................................
> .........................................
> .........................................
> .......................<assertDirectoryDeleted> attempt 1 left 3 files/dirs behind: 0=/Users/rh161140/derby/dummy/testRun/db_master/wombat/log 1=/Users/rh161140/derby/dummy/testRun/db_master/wombat 2=/Users/rh161140/derby/dummy/testRun/db_master
> ................
> Time: 4,221.94

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DERBY-5455) assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests

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

Kristian Waagan commented on DERBY-5455:
----------------------------------------

A small correction: The test will fail if one or more files have not been deleted after four attempts.
                
> assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-5455
>                 URL: https://issues.apache.org/jira/browse/DERBY-5455
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.2.2
>         Environment: mac os x 10.6.8, Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3515)
>            Reporter: Rick Hillegas
>            Priority: Minor
>
> Near the end of the JUnit tests on the 10.8.2.2 RC, I saw the following diagnostic on the console. Don't know what test this refers to:
> .........................................
> .........................................
> .........................................
> .......................<assertDirectoryDeleted> attempt 1 left 3 files/dirs behind: 0=/Users/rh161140/derby/dummy/testRun/db_master/wombat/log 1=/Users/rh161140/derby/dummy/testRun/db_master/wombat 2=/Users/rh161140/derby/dummy/testRun/db_master
> ................
> Time: 4,221.94

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DERBY-5455) assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests

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

Rick Hillegas commented on DERBY-5455:
--------------------------------------

Thanks for that explanation, Kristian. Is someone collecting statistics on re-tried deletions? Should people record instances of this diagnostic on this JIRA or is there a better place to aggregate this information? Thanks.
                
> assertDirectoryDeleted diagnostic printed on console near end of running JUnit tests
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-5455
>                 URL: https://issues.apache.org/jira/browse/DERBY-5455
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.2.2
>         Environment: mac os x 10.6.8, Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3515)
>            Reporter: Rick Hillegas
>            Priority: Minor
>
> Near the end of the JUnit tests on the 10.8.2.2 RC, I saw the following diagnostic on the console. Don't know what test this refers to:
> .........................................
> .........................................
> .........................................
> .......................<assertDirectoryDeleted> attempt 1 left 3 files/dirs behind: 0=/Users/rh161140/derby/dummy/testRun/db_master/wombat/log 1=/Users/rh161140/derby/dummy/testRun/db_master/wombat 2=/Users/rh161140/derby/dummy/testRun/db_master
> ................
> Time: 4,221.94

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira