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

A single object is reused among windows with different key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.10.1
    • None
    • API / Core
    • None

    Description

      When a stream is keyed and time window applied, a single object is being reused among the different keyed streams. I am pasting the essence of my test code with the full version attached.

          source
            .keyBy( x => x.elementNumber)
            .timeWindow(Time.milliseconds(1))
            .apply(new WindowCounter())
      

      In this example a single WindowCounter object is being created. Please correct me if this is not really a bug.

      Attachments

        1. VariablesNotCreatedPerKey.scala
          2 kB
          Yordan Pavlov

        Activity

          People

            Unassigned Unassigned
            YordanPavlov Yordan Pavlov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: