You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yordan Pavlov (Jira)" <ji...@apache.org> on 2020/12/21 15:15:00 UTC
[jira] [Updated] (FLINK-20698) A single object is reused among
windows with different key
[ https://issues.apache.org/jira/browse/FLINK-20698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yordan Pavlov updated FLINK-20698:
----------------------------------
Summary: A single object is reused among windows with different key (was: A single ojbect is reused among windows with different key)
> A single object is reused among windows with different key
> ----------------------------------------------------------
>
> Key: FLINK-20698
> URL: https://issues.apache.org/jira/browse/FLINK-20698
> Project: Flink
> Issue Type: Bug
> Components: API / Core
> Affects Versions: 1.10.1
> Reporter: Yordan Pavlov
> Priority: Major
> Attachments: VariablesNotCreatedPerKey.scala
>
>
> 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.
> {code:scala}
> source
> .keyBy( x => x.elementNumber)
> .timeWindow(Time.milliseconds(1))
> .apply(new WindowCounter())
> {code}
> In this example a single WindowCounter object is being created. Please correct me if this is not really a bug.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)