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 2011/02/16 14:26:04 UTC

[jira] Created: (DERBY-5046) Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness

Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness
-------------------------------------------------------------------------------------

                 Key: DERBY-5046
                 URL: https://issues.apache.org/jira/browse/DERBY-5046
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.8.0.0
            Reporter: Kristian Waagan
            Assignee: Kristian Waagan
            Priority: Minor


An assert on timestamps in the test AutomaticIndexStatisticsTest.testStatisticsCorrectnes is unstable, and fails on sufficiently fast machines and/or operating systems with lower resolution timers.

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

        

[jira] [Closed] (DERBY-5046) Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness

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

Kristian Waagan closed DERBY-5046.
----------------------------------


Closing issue, I have seen no more reports of this error.

> Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness
> -------------------------------------------------------------------------------------
>
>                 Key: DERBY-5046
>                 URL: https://issues.apache.org/jira/browse/DERBY-5046
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.1.2
>            Reporter: Kristian Waagan
>            Assignee: Kristian Waagan
>            Priority: Minor
>             Fix For: 10.8.1.2
>
>         Attachments: derby-5046-1a-relax_assert.diff
>
>
> An assert on timestamps in the test AutomaticIndexStatisticsTest.testStatisticsCorrectnes is unstable, and fails on sufficiently fast machines and/or operating systems with lower resolution timers.

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

[jira] Resolved: (DERBY-5046) Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness

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

Kristian Waagan resolved DERBY-5046.
------------------------------------

          Resolution: Fixed
       Fix Version/s: 10.8.0.0
    Issue & fix info:   (was: [Patch Available])

Thanks, Knut.
Yes, the problem was identical timestamps. The existing assert demanded s.before(now) to be true.

Committed to trunk with revision 1071348.

> Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness
> -------------------------------------------------------------------------------------
>
>                 Key: DERBY-5046
>                 URL: https://issues.apache.org/jira/browse/DERBY-5046
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Kristian Waagan
>            Assignee: Kristian Waagan
>            Priority: Minor
>             Fix For: 10.8.0.0
>
>         Attachments: derby-5046-1a-relax_assert.diff
>
>
> An assert on timestamps in the test AutomaticIndexStatisticsTest.testStatisticsCorrectnes is unstable, and fails on sufficiently fast machines and/or operating systems with lower resolution timers.

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

        

[jira] Commented: (DERBY-5046) Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness

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

Kristian Waagan commented on DERBY-5046:
----------------------------------------

1) testStatisticsCorrectness(org.apache.derbyTesting.functionTests.tests.store.AutomaticIndexStatisticsTest)junit.framework.AssertionFailedError
        at org.apache.derbyTesting.functionTests.tests.store.AutomaticIndexStatisticsTest.testStatisticsCorrectness(AutomaticIndexStatisticsTest.java:346)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
        at junit.extensions.TestSetup.run(TestSetup.java:25)
        at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
        at junit.extensions.TestSetup.run(TestSetup.java:25)

> Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness
> -------------------------------------------------------------------------------------
>
>                 Key: DERBY-5046
>                 URL: https://issues.apache.org/jira/browse/DERBY-5046
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Kristian Waagan
>            Assignee: Kristian Waagan
>            Priority: Minor
>
> An assert on timestamps in the test AutomaticIndexStatisticsTest.testStatisticsCorrectnes is unstable, and fails on sufficiently fast machines and/or operating systems with lower resolution timers.

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

        

[jira] Commented: (DERBY-5046) Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness

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

Knut Anders Hatlen commented on DERBY-5046:
-------------------------------------------

So the problem was that the two timestamps were identical? The patch seems to fix that problem. +1 to commit.

> Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness
> -------------------------------------------------------------------------------------
>
>                 Key: DERBY-5046
>                 URL: https://issues.apache.org/jira/browse/DERBY-5046
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Kristian Waagan
>            Assignee: Kristian Waagan
>            Priority: Minor
>         Attachments: derby-5046-1a-relax_assert.diff
>
>
> An assert on timestamps in the test AutomaticIndexStatisticsTest.testStatisticsCorrectnes is unstable, and fails on sufficiently fast machines and/or operating systems with lower resolution timers.

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

        

[jira] Updated: (DERBY-5046) Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness

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

Kristian Waagan updated DERBY-5046:
-----------------------------------

    Attachment: derby-5046-1a-relax_assert.diff

Attaching patch 1a, which relaxes the assert on the timestamps.

Patch ready for review.

> Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness
> -------------------------------------------------------------------------------------
>
>                 Key: DERBY-5046
>                 URL: https://issues.apache.org/jira/browse/DERBY-5046
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Kristian Waagan
>            Assignee: Kristian Waagan
>            Priority: Minor
>         Attachments: derby-5046-1a-relax_assert.diff
>
>
> An assert on timestamps in the test AutomaticIndexStatisticsTest.testStatisticsCorrectnes is unstable, and fails on sufficiently fast machines and/or operating systems with lower resolution timers.

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

        

[jira] Updated: (DERBY-5046) Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness

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

Kristian Waagan updated DERBY-5046:
-----------------------------------

    Issue & fix info: [Patch Available]

> Intermittent assert failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness
> -------------------------------------------------------------------------------------
>
>                 Key: DERBY-5046
>                 URL: https://issues.apache.org/jira/browse/DERBY-5046
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Kristian Waagan
>            Assignee: Kristian Waagan
>            Priority: Minor
>         Attachments: derby-5046-1a-relax_assert.diff
>
>
> An assert on timestamps in the test AutomaticIndexStatisticsTest.testStatisticsCorrectnes is unstable, and fails on sufficiently fast machines and/or operating systems with lower resolution timers.

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