Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-17653 FLIP-126: Unify (and separate) Watermark Assigners
  3. FLINK-17766

Use checkpoint lock instead of fine-grained locking in Kafka AbstractFetcher

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • Connectors / Kafka
    • None

    Description

      In emitRecordsWithTimestamps(), we are currently locking on the partition state object itself to prevent concurrent access (and to make sure that changes are visible across threads). However, after recent changes (FLINK-17307) we hold the checkpoint lock for emitting the whole "bundle" of records from Kafka. We can now also just use the checkpoint lock in the periodic emitter callback and then don't need the fine-grained locking on the state for record emission.

      Attachments

        Activity

          People

            aljoscha Aljoscha Krettek
            aljoscha Aljoscha Krettek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: