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

Improve performance of Log.fetchOffsetByTimestamp()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: 0.10.2.2, 2.4.1
    • Fix Version/s: 2.6.0
    • Component/s: core
    • Labels:

      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

              • Assignee:
                Unassigned
                Reporter:
                boli Eric Bolinger
                Reviewer:
                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