Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9853

Improve performance of Log.fetchOffsetByTimestamp()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Implemented
    • 0.10.2.2, 2.4.1
    • 2.6.0
    • core

    Description

      This method inefficiently searches for the first element that meets a condition.  The temporary collection returned by `takeWhile()` method is not really used.  But rather the length is used as an offset into the original collection.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              boli Eric Bolinger
              Ismael Juma Ismael Juma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified