Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10423

Remove uses of wall-clock time in codebase

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • New

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              matriv Marios Trivyzas
              rcmuir Robert Muir
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: