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

Memory leak in KStreamWindowAggregate with ON_WINDOW_CLOSE emit strategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0, 3.3.2
    • 3.5.0, 3.4.1, 3.3.3
    • streams
    • None

    Description

      The Streams DSL processor implementation for the ON_WINDOW_CLOSE emit strategy during KStream windowed aggregations opens a key-value iterator but does not call `close()` on it (link), despite the Javadocs for the iterator making clear that users must do so in order to release resources (link).  

      I discovered this bug while running load testing benchmarks and noticed that some runs were sporadically hitting OOMs, so it is definitely possible to hit this in practice.

      Attachments

        Issue Links

          Activity

            People

              vcrfxia Victoria Xia
              vcrfxia Victoria Xia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: