[ https://issues.apache.org/jira/browse/LUCENE-10423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17579570#comment-17579570 ]
Marios Trivyzas commented on LUCENE-10423: ------------------------------------------ But `nanoTime()` is marked here: [https://github.com/apache/lucene/blob/main/gradle/validation/forbidden-apis/defaults.tests.txt#L21] as to be removed as well? > Remove uses of wall-clock time in codebase > ------------------------------------------ > > Key: LUCENE-10423 > URL: https://issues.apache.org/jira/browse/LUCENE-10423 > Project: Lucene - Core > Issue Type: Bug > Reporter: Robert Muir > Priority: Major > > Followup to LUCENE-10421 > Code in the library shouldn't rely on wall-clock time. If you look at all the > places doing this, they are basically all bad news. > Most tests doing this are "iterating for some amount of wall-clock time" > which causes them to instead just be non-reproducible. These should be > changed to use a fixed number of loop iterations instead. > It would really be great to ban this stuff in forbidden apis. It is even in > the configuration file, just currently commented out. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org