Closed JPMoresmau closed 5 years ago
Was this upgrade on an existing db and it works with Oracle jdk 11 but not the zulu one?
On a new DB (we wipe out the db for our tests), and zulu 8 works fine, so I'd say it's a Java 11 change, but I haven't tested with an Oracle 11 JRE, no.
I had similar issues some time ago, with the same Oracle Java 8 version, only switching branches (at this time we switched to 2.0.0-SNAPSHOT, so there was sometimes still the 1.5.x version in a branch), so I thought this could be the reason. So I think it is not primarily the jdk version.
I tried for fun to use a non Oracle Java 11 JDK (from https://www.azul.com/downloads/zulu/), and I get this error:
Compared to the Oracle Java 8 JRE I was using, LocalDateTime now has nanoseconds, so I think we compare a time with nanos and a time without. Maybe we should just calculate the difference and fail if it's over a threshold?