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 "Dag H. Wanvik (JIRA)" <ji...@apache.org> on 2011/02/15 00:47:57 UTC

[jira] Created: (DERBY-5040) On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest

On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest
----------------------------------------------------------------------------

                 Key: DERBY-5040
                 URL: https://issues.apache.org/jira/browse/DERBY-5040
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.8.0.0
            Reporter: Dag H. Wanvik


Cf log here:

http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-1070264.html

Not sure if this is distinct (or not) from other errors we have seen after the enabling of the statistics auto-refresh patch.

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

        

[jira] Resolved: (DERBY-5040) On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest

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

Kristian Waagan resolved DERBY-5040.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.8.0.0
         Assignee: Kristian Waagan

The cascade-effect has been fixed by switching from using the default db to a separate db.
The test failure itself is hopefully adressed by DERBY-4915.

I don't expect more work for this issue.

> On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest
> ----------------------------------------------------------------------------
>
>                 Key: DERBY-5040
>                 URL: https://issues.apache.org/jira/browse/DERBY-5040
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Dag H. Wanvik
>            Assignee: Kristian Waagan
>              Labels: derby_triage10_8
>             Fix For: 10.8.0.0
>
>         Attachments: derby-5040-1a-use_separate_db.diff
>
>
> Cf log here:
> http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-1070264.html
> Not sure if this is distinct (or not) from other errors we have seen after the enabling of the statistics auto-refresh patch.

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

        

[jira] Commented: (DERBY-5040) On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest

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

Kristian Waagan commented on DERBY-5040:
----------------------------------------

I see that the first test that failed was AutomaticIndexStatisticsTest.testStatsCreatedOnGrowthThenDeleteDb. The problem was that one of the data files in the seg0 directory could not be deleted. Since all the other files got deleted, this is now basically a very corrupt database... Derby is not, or rather has not been made, capable of deleting an existing directory structure in the default case, and thus all tests accessing the default database wombat fails.

Again this intermittent (?) delete issue causes trouble, and I believe it happens only on Windows. I've seen something similar with the upgrade test on my machine (Windows Vista).
I'm not sure if the istat daemon can cause Derby to keep file handles open after shutdown, but maybe it can if the timing is right (i.e. calling a path that involves reopening a container if it has already been closed).

I see at least two ways to progress on this problem:
 a) Make the delete method more persistent by adding a sleep after the first iteration of deletes, and then try to delete all remaining files in a second pass. Could also repeat if required. If the files cannot be deleted after X iterations, there must be a real resource handling bug.
 b) If easily reproducible, debug to find out if there are open file handles and if so figure out why. I don't know if you can easily map a file handle to something inside the Java process though, so this may involve a fair amount of code inspection and debugging.

> On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest
> ----------------------------------------------------------------------------
>
>                 Key: DERBY-5040
>                 URL: https://issues.apache.org/jira/browse/DERBY-5040
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Dag H. Wanvik
>
> Cf log here:
> http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-1070264.html
> Not sure if this is distinct (or not) from other errors we have seen after the enabling of the statistics auto-refresh patch.

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

        

[jira] Updated: (DERBY-5040) On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest

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

Myrna van Lunteren updated DERBY-5040:
--------------------------------------

    Urgency: Normal
     Labels: derby_triage10_8  (was: )

> On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest
> ----------------------------------------------------------------------------
>
>                 Key: DERBY-5040
>                 URL: https://issues.apache.org/jira/browse/DERBY-5040
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Dag H. Wanvik
>              Labels: derby_triage10_8
>         Attachments: derby-5040-1a-use_separate_db.diff
>
>
> Cf log here:
> http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-1070264.html
> Not sure if this is distinct (or not) from other errors we have seen after the enabling of the statistics auto-refresh patch.

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

        

[jira] Commented: (DERBY-5040) On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest

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

Kristian Waagan commented on DERBY-5040:
----------------------------------------

Committed to trunk with revision 1071783.

> On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest
> ----------------------------------------------------------------------------
>
>                 Key: DERBY-5040
>                 URL: https://issues.apache.org/jira/browse/DERBY-5040
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Dag H. Wanvik
>         Attachments: derby-5040-1a-use_separate_db.diff
>
>
> Cf log here:
> http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-1070264.html
> Not sure if this is distinct (or not) from other errors we have seen after the enabling of the statistics auto-refresh patch.

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

        

[jira] Updated: (DERBY-5040) On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest

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

Kristian Waagan updated DERBY-5040:
-----------------------------------

    Attachment: derby-5040-1a-use_separate_db.diff

Attaching patch 1a, which makes the failing test use a separate database instead of the default database wombat.
This should eliminate the cascade of errors.

Note that this patch doesn't address the underlying cause for not being able to delete the database directory.

> On Windows, cascade of errors after failed test AutomaticIndexStatisticsTest
> ----------------------------------------------------------------------------
>
>                 Key: DERBY-5040
>                 URL: https://issues.apache.org/jira/browse/DERBY-5040
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Dag H. Wanvik
>         Attachments: derby-5040-1a-use_separate_db.diff
>
>
> Cf log here:
> http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.6/testing/Limited/testSummary-1070264.html
> Not sure if this is distinct (or not) from other errors we have seen after the enabling of the statistics auto-refresh patch.

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