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

Move RateLimiter up to Directory and make it IOContext aware

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1, 6.0
    • core/store
    • None
    • New, Patch Available

    Description

      Currently the RateLimiter only applies to FSDirectory which is fine in general but always requires casts and other dir. impls (custom ones could benefit from this too.) We are also only able to rate limit merge operations which limits the functionality here a lot. Since we have the context information what the IndexOutput is used for we can use that for rate limiting.

      Attachments

        1. LUCENE-4537.patch
          25 kB
          Simon Willnauer
        2. LUCENE-4537.patch
          15 kB
          Simon Willnauer
        3. LUCENE-4537.patch
          17 kB
          Simon Willnauer
        4. LUCENE-4537.patch
          16 kB
          Simon Willnauer

        Activity

          People

            Unassigned Unassigned
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: