Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-2004

Memory leak in presence of failed checkpoints in KafkaSource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.9
    • 0.9
    • None
    • None

    Description

      Checkpoints that fail never send a commit message to the tasks.

      Maintaining a map of all pending checkpoints introduces a memory leak, as entries for failed checkpoints will never be removed.

      Approaches to fix this:

      • The source cleans up entries from older checkpoints once a checkpoint is committed (simple implementation in a linked hash map)
      • The commit message could include the optional state handle (source needs not maintain the map)
      • The checkpoint coordinator could send messages for failed checkpoints?

      Attachments

        Activity

          People

            rmetzger Robert Metzger
            sewen Stephan Ewen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: