db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DERBY-5172) testTimeAndDateWithCalendar (jdbcapi.CallableTest) fails intermittently with AssertionFailedError: hour expected: differs from actual.
Date Mon, 01 Apr 2013 18:53:15 GMT

    [ https://issues.apache.org/jira/browse/DERBY-5172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13619046#comment-13619046
] 

Myrna van Lunteren edited comment on DERBY-5172 at 4/1/13 6:51 PM:
-------------------------------------------------------------------

This occurred again on 3 linux (vmware) machines; the ones running 10.8, 10.10 and trunk (no
other Linux machines ran tests).
The trunk and 10.8 machine are running CentOS, the 10.10 is running RedHat.
On each machine 3 ibm jvms were running the tests concurrently - ibm 1.5, ibm 1.6, and ibm
1.7; each showed the same failures. For 10.10 and trunk there were 4 failures, for 10.8 only
2 per jvm.
This also happened on 1 windows machine (also vmware, also running test concurrently) - the
one running 10.8, with weme6.2. 
The failure was on the night from March 30 to March 31.  (Unfortunately, it looks like there
was a hiccup in the reporting, so no report published in my apache pages shows this).

Another interesting detail is that this does seem related to switch to Daylight Savings Time
for Europe, although the machines are in the Pacific Time Zone.


                
      was (Author: myrna):
    This occurred again on 3 linux (vmware) machines; the ones running 10.8, 10.10 and trunk
(no other Linux machines ran tests).
The trunk and 10.8 machine are running CentOS, the 10.10 is running RedHat.
On each machine 3 ibm jvms were running the tests concurrently - ibm 1.5, ibm 1.6, and ibm
1.7; each showed the same failures. For 10.10 and trunk there were 4 failures, for 10.8 only
2 per jvm.
This also happened on 1 windows machine (also vmware, also running test concurrently) - the
one running 10.8, with weme6.2. 
The failure was on the night from March 29 to March 30.  (Unfortunately, it looks like there
was a hiccup in the reporting, so no report published in my apache pages shows this).

Another interesting detail is that this does seem related to switch to Daylight Savings Time
for Europe, although the machines are in the Pacific Time Zone.


                  
> testTimeAndDateWithCalendar (jdbcapi.CallableTest) fails intermittently with AssertionFailedError:
hour expected: differs from actual.
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5172
>                 URL: https://issues.apache.org/jira/browse/DERBY-5172
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.5.3.2, 10.7.1.4
>         Environment: IBM jvms 1.5 (SR12 FP3) and 1.6 (SR9 FP1), Suse Linux and Windows
XP
>            Reporter: Myrna van Lunteren
>            Priority: Minor
>              Labels: derby_triage10_10
>         Attachments: failing-timestamp.diff
>
>
> I've seen the following stack trace, for instance on 3/26/2011: http://people.apache.org/~myrnavl/derby_test_results/v10_7/windows/testlog/ibm16/1085854-suites.All_diff.txt
> 1) testTimeAndDateWithCalendar(org.apache.derbyTesting.functionTests.tests.jdbcapi.CallableTest)junit.framework.AssertionFailedError:
hour expected:<2> but was:<3>
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.CallableTest.assertSameTime(CallableTest.java:504)
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.CallableTest.assertSameTimestamp(CallableTest.java:521)
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.CallableTest.testTimeAndDateWithCalendar(CallableTest.java:456)
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.CallableTest.testTimeAndDateWithCalendar(CallableTest.java:412)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.extensions.TestSetup.run(TestSetup.java:16)
> And another example, from
> http://people.apache.org/~myrnavl/derby_test_results/v10_5/windows/testlog/ibm16/1085628-suites.All_diff.txt:
> 1) testTimeAndDateWithCalendar(org.apache.derbyTesting.functionTests.tests.jdbcapi.CallableTest)junit.framework.AssertionFailedError:
hour expected:<18> but was:<17>
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.CallableTest.assertSameTime(CallableTest.java:512)
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.CallableTest.assertSameTimestamp(CallableTest.java:529)
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.CallableTest.testTimeAndDateWithCalendar(CallableTest.java:464)
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.CallableTest.testTimeAndDateWithCalendar(CallableTest.java:412)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> 	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 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)
> As this is happening on two different code lines and on both linux and windows and I've
recently updated the jvms, this could be a jvm issue, but that needs to be verified.

--
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

Mime
View raw message