You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Robert Muir (Jira)" <ji...@apache.org> on 2022/02/16 10:23:00 UTC

[jira] [Created] (LUCENE-10423) Remove uses of wall-clock time in codebase

Robert Muir created LUCENE-10423:
------------------------------------

             Summary: 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


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.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org