Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6163

ServiceTracker should not use System.currentTimeMillis() to check timeouts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • framework-6.0.3
    • framework-7.0.0
    • Framework
    • None

    Description

      ServiceTracker uses System.currentTimeMillis() to check timeouts in waitForService().

      If the system time changes either:

      • the timeout might occur to soon - if the time was set to the future
      • the timeout might not occur in a reasonable time - if the time was set to the past

      Instead of System.currentTimeMillis() the system tick based System.nanoTime() should be used as it does not to change after the system time is changed.

      Attachments

        Issue Links

          Activity

            People

              karlpauls Karl Pauls
              tobgun Tobias Gunkel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: