Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8057

Nanosecond precision lost in SqlTimestampExternalizer and InstantExternalizer

    XMLWordPrintable

Details

    Description

      This is evident with JDK fix for https://bugs.openjdk.java.net/browse/JDK-8068730

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.wildfly.clustering.marshalling.spi.IndexExternalizerTestCase
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.wildfly.clustering.marshalling.spi.IndexExternalizerTestCase
      Running org.wildfly.clustering.marshalling.spi.net.NetExternalizerTestCase
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in org.wildfly.clustering.marshalling.spi.net.NetExternalizerTestCase
      Running org.wildfly.clustering.marshalling.spi.time.TimeExternalizerTestCase
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec <<< FAILURE! - in org.wildfly.clustering.marshalling.spi.time.TimeExternalizerTestCase
      test(org.wildfly.clustering.marshalling.spi.time.TimeExternalizerTestCase) Time elapsed: 0.019 sec <<< FAILURE!
      java.lang.AssertionError: expected:<2017-02-08T11:02:48.240513Z> but was:<2017-02-08T11:02:48.240Z>
      at org.junit.Assert.fail(Assert.java:88)
      at org.junit.Assert.failNotEquals(Assert.java:834)
      at org.junit.Assert.assertEquals(Assert.java:118)
      at org.junit.Assert.assertEquals(Assert.java:144)
      at org.wildfly.clustering.marshalling.spi.ExternalizerTestUtil.lambda$test$0(ExternalizerTestUtil.java:42)
      at org.wildfly.clustering.marshalling.spi.ExternalizerTestUtil.test(ExternalizerTestUtil.java:55)
      at org.wildfly.clustering.marshalling.spi.ExternalizerTestUtil.test(ExternalizerTestUtil.java:42)
      at org.wildfly.clustering.marshalling.spi.time.TimeExternalizerTestCase.test(TimeExternalizerTestCase.java:54)

      Running org.wildfly.clustering.marshalling.spi.util.AtomicExternalizerTestCase
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in org.wildfly.clustering.marshalling.spi.util.AtomicExternalizerTestCase
      Running org.wildfly.clustering.marshalling.spi.util.CollectionExternalizerTestCase
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec - in org.wildfly.clustering.marshalling.spi.util.CollectionExternalizerTestCase
      Running org.wildfly.clustering.marshalling.spi.util.DateExternalizerTestCase
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec <<< FAILURE! - in org.wildfly.clustering.marshalling.spi.util.DateExternalizerTestCase
      test(org.wildfly.clustering.marshalling.spi.util.DateExternalizerTestCase) Time elapsed: 0.017 sec <<< FAILURE!
      java.lang.AssertionError: expected:<2017-02-08 12:02:48.30185> but was:<2017-02-08 12:02:48.301>
      at org.junit.Assert.fail(Assert.java:88)
      at org.junit.Assert.failNotEquals(Assert.java:834)
      at org.junit.Assert.assertEquals(Assert.java:118)
      at org.junit.Assert.assertEquals(Assert.java:144)
      at org.wildfly.clustering.marshalling.spi.ExternalizerTestUtil.lambda$test$0(ExternalizerTestUtil.java:42)
      at org.wildfly.clustering.marshalling.spi.ExternalizerTestUtil.test(ExternalizerTestUtil.java:55)
      at org.wildfly.clustering.marshalling.spi.ExternalizerTestUtil.test(ExternalizerTestUtil.java:42)
      at org.wildfly.clustering.marshalling.spi.util.DateExternalizerTestCase.test(DateExternalizerTestCase.java:49)

      Running org.wildfly.clustering.marshalling.spi.util.MapEntryExternalizerTestCase
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in org.wildfly.clustering.marshalling.spi.util.MapEntryExternalizerTestCase
      Running org.wildfly.clustering.marshalling.spi.util.MapExternalizerTestCase
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec - in org.wildfly.clustering.marshalling.spi.util.MapExternalizerTestCase
      Running org.wildfly.clustering.marshalling.spi.util.UtilExternalizerTestCase
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec - in org.wildfly.clustering.marshalling.spi.util.UtilExternalizerTestCase

      Results :

      Failed tests:
      TimeExternalizerTestCase.test:54 expected:<2017-02-08T11:02:48.240513Z> but was:<2017-02-08T11:02:48.240Z>
      DateExternalizerTestCase.test:49 expected:<2017-02-08 12:02:48.30185> but was:<2017-02-08 12:02:48.301>

      Tests run: 9, Failures: 2, Errors: 0, Skipped: 0

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-rhusar Radoslav Husar
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: