[hibernate-issues] [JIRA] (HHH-13879) Slow query log should use System#nanoTime not System#currentTimeMillis

Vlad Mihalcea (JIRA) jira at hibernate.atlassian.net
Tue Feb 25 09:45:16 EST 2020


Vlad Mihalcea ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Af5e8c0d3-3aae-4bb4-a4e1-25463d60d232 ) *commented* on HHH-13879 ( https://hibernate.atlassian.net/browse/HHH-13879?atlOrigin=eyJpIjoiMTAzNGRmMmE2OWQzNGIxMTg2NjI5OTI2M2ViMDY4OTkiLCJwIjoiaiJ9 )

Re: Slow query log should use System#nanoTime not System#currentTimeMillis ( https://hibernate.atlassian.net/browse/HHH-13879?atlOrigin=eyJpIjoiMTAzNGRmMmE2OWQzNGIxMTg2NjI5OTI2M2ViMDY4OTkiLCJwIjoiaiJ9 )

Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea ) All Metrics frameworks I know use System.nanoTime :

* Dropwizard Metrics ( https://github.com/dropwizard/metrics/blob/4.1-development/metrics-core/src/main/java/com/codahale/metrics/Clock.java )
* Micrometer ( https://github.com/micrometer-metrics/micrometer/blob/6c657f93479b03835478153c33cde4122b7b7ac2/micrometer-core/src/main/java/io/micrometer/core/instrument/Clock.java )

>From the JavaDoc, nanoTime is suggested to be used for durations. Do you know of some JDK bug that causes the issue you indicated?

( https://hibernate.atlassian.net/browse/HHH-13879#add-comment?atlOrigin=eyJpIjoiMTAzNGRmMmE2OWQzNGIxMTg2NjI5OTI2M2ViMDY4OTkiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13879#add-comment?atlOrigin=eyJpIjoiMTAzNGRmMmE2OWQzNGIxMTg2NjI5OTI2M2ViMDY4OTkiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100121- sha1:a269fed )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200225/64f63990/attachment-0001.html 


More information about the hibernate-issues mailing list