Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10310 Kafka Raft Snapshot
  3. KAFKA-12997

Expose log record append time to the controller/broker

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      The snapshot records are generated by each individual quorum participant which also stamps the append time in the records. These appends times are generated from a different clock (except in the case of the quorum leader) as compared to the metadata log records (where timestamps are stamped by the leader).

      To enable having a single clock to compare timestamps, https://issues.apache.org/jira/browse/KAFKA-12952 adds a timestamp field to the snapshot header which should contain the append time of the highest record contained in the snapshot (which will be in leader time).

      This JIRA tracks exposing and wiring the batch timestamp such that it can be provided to the SnapshotWriter at the time of snapshot creation.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jagsancio Jose Armando Garcia Sancio
            Niket Goel Niket Goel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment