This test failure is caused because MySQL handles only seconds
granularity for time fields. See
org.eclipse.persistence.testing.tests.history.HistoryTestModel
buildUpdateObjectTestSuite line 104:
if(getSession().getPlatform().isMySQL()) {
if(internalException.getClass().getName().contains("MySQLIntegrityConstraintViolationException"))
{
// two objects created / updated during the
same second will have the same date/time representation
// in MySQL database column because on
MySQL microseconds cannot be stored into a column of any temporal data
type.
throw new TestWarningException("on MySQL
microseconds cannot be stored into a column of any temporal data type,
therefore the following exception occurred: ", internalException);
Also there is a separate bug for this issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=210270
So we could wrap the bug 319276 test in a
HistoryTestModel$WrappedWriteObjectTest so it throws this warning and
doesn't result in a test error or we could just fix 210270 which I'm
happy to do and would be better in terms of allowing history support on
MySQL too.
John
On 7/22/2010 12:39 PM, David Minsky wrote:
I'm currently looking into the test-core failures on MySQL from bug
319276
On 22/07/2010 3:25 AM, eric.gwin@xxxxxxxxxx
wrote:
Build summary for 2.2.0.v20100722-r7887
-----------------------------------
Non-critical compilation issues (if any) repoted in
the format [BUILDLOG_LINE#: NUMBER_OF_ERRORS]:
-----------------------------------
TEST-CORE
Tests run:7495 Failures:0 Errors:3
TEST-JPA
Tests run:2238 Failures:0 Errors:0
TEST-WDF
Tests run:822 Failures:0 Errors:0
TEST-MOXY
Tests run:26010 Failures:0 Errors:0
TEST-SDO
Tests run:4516 Failures:0 Errors:0
TEST-DBWS
Tests run:17 Failures:0 Errors:0
TEST-DBWS-UTILS
Tests run:28 Failures:0 Errors:0
-----------------------------------
Build log: (/shared/rt/eclipselink/logs/bsb-trunk_nightly_100722-0005.log)
Test logs can be found on the download server at:
http://www.eclipse.org/eclipselink/downloads/nightly.php
Build logs can be found on the download server at:
http://www.eclipse.org/eclipselink/downloads/build-failures.php
-----------------------------------
SVN Changes since Last Build:
------------------------------------------------------------------------
r7887 | dminsky | 2010-07-21 17:08:16 -0400 (Wed, 21 Jul 2010)
Changed paths:
M /trunk/foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/queries/QueryFrameworkTestSuite.java
A /trunk/foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/queries/ScrollableCursorForwardOnlyResultSetTest.java
M /trunk/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/queries/ScrollableCursor.java
------------------------------------------------------------------------
r7885 | kyuan | 2010-07-21 10:57:42 -0400 (Wed, 21 Jul 2010)
Changed paths:
M /trunk/jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/fetchgroups/SimpleSerializeFetchGroupTests.java
M /trunk/jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/fieldaccess/fetchgroups/SimpleSerializeFetchGroupTests.java
------------------------------------------------------------------------
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev
--
David
Minsky | Senior Member of Technical Staff
Phone: +1 613
2884605
Oracle Oracle Server Technologies
Sustaining Engineering
ORACLE Canada | 45 O'Connor Street, Ottawa, Ontario | K1P 1A4
Oracle
is committed to developing practices and products that help protect the
environment
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev
|