Lucene - Core
  1. Lucene - Core
  2. LUCENE-4836

SimpleRateLimiter#pause returns target time stamp instead of sleep time.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1, 4.2
    • Fix Version/s: 4.3, 4.2.1, Trunk
    • Component/s: core/store
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      SimpleRateLimiter#pause is supposed to return the time it actually spend sleeping but it returns the actual time in nanos it is supposed to sleep until. This cause some problems in ES due to long overflows.... here is the original issue reported by a user: https://github.com/elasticsearch/elasticsearch/issues/2785

      1. LUCENE-4836.patch
        4 kB
        Simon Willnauer

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        24m 30s 1 Simon Willnauer 15/Mar/13 22:53
        Resolved Resolved Closed Closed
        55d 11h 40m 1 Uwe Schindler 10/May/13 11:33
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Uwe Schindler added a comment -

        Closed after release.

        Show
        Uwe Schindler added a comment - Closed after release.
        Simon Willnauer made changes -
        Fix Version/s 4.2.1 [ 12324240 ]
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Simon Willnauer
        http://svn.apache.org/viewvc?view=revision&revision=1457155

        LUCENE-4836: Fix SimpleRateLimiter#pause to return the actual time spent sleeping

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Simon Willnauer http://svn.apache.org/viewvc?view=revision&revision=1457155 LUCENE-4836 : Fix SimpleRateLimiter#pause to return the actual time spent sleeping
        Simon Willnauer made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] Simon Willnauer
        http://svn.apache.org/viewvc?view=revision&revision=1457154

        LUCENE-4836: Fix SimpleRateLimiter#pause to return the actual time spent sleeping

        Show
        Commit Tag Bot added a comment - [trunk commit] Simon Willnauer http://svn.apache.org/viewvc?view=revision&revision=1457154 LUCENE-4836 : Fix SimpleRateLimiter#pause to return the actual time spent sleeping
        Simon Willnauer made changes -
        Fix Version/s 5.0 [ 12321663 ]
        Simon Willnauer made changes -
        Field Original Value New Value
        Attachment LUCENE-4836.patch [ 12573962 ]
        Hide
        Simon Willnauer added a comment -

        here is a patch and a simple test

        Show
        Simon Willnauer added a comment - here is a patch and a simple test
        Simon Willnauer created issue -

          People

          • Assignee:
            Simon Willnauer
            Reporter:
            Simon Willnauer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development