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

Tighten up lag estimates when source topic optimization is on

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.0
    • None
    • streams
    • None

    Description

      Right now, we use endOffsets of the source topic for the computation. For "optimized" changelogs, this will be wrong, strictly speaking, but it's an over-estimate (which seems better than an under-estimate), and it's also still an apples-to-apples comparison, since all replicas would use the same upper bound to compute their lags, so the "pick the freshest" replica is still going to pick the right one.

      The current implementation is technically correct, within the documented behavior that the result is an "estimate", but I marked it as a blocker to be sure that we revisit it after ongoing work to refactor the task management in Streams is complete. If it becomes straightforward to tighten up the estimate, we should go ahead and do it. Otherwise, we can downgrade the priority of the ticket.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vinoth Vinoth Chandar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: