You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Matthias J. Sax (Jira)" <ji...@apache.org> on 2026/10/22 20:26:00 UTC

[jira] [Assigned] (KAFKA-21324) Wrong parameter order in private ctor of WindowKeyQuery

     [ https://issues.apache.org/jira/browse/KAFKA-21324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias J. Sax reassigned KAFKA-21324:
---------------------------------------

    Assignee: Michael Koepf

> Wrong parameter order in private ctor of WindowKeyQuery
> -------------------------------------------------------
>
>                 Key: KAFKA-21324
>                 URL: https://issues.apache.org/jira/browse/KAFKA-21324
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>    Affects Versions: 3.2.3, 3.3.2, 3.4.1, 3.5.2, 3.6.2, 3.7.2, 3.8.1, 3.9.2, 4.0.2, 4.1.2, 4.3.1, 4.2.2
>            Reporter: Michael Koepf
>            Assignee: Michael Koepf
>            Priority: Major
>             Fix For: 3.2.4, 3.3.3, 3.4.2, 3.5.3, 3.6.3, 3.7.3, 3.8.2, 3.9.3, 4.1.3, 4.0.3, 4.3.2, 4.2.3
>
>
> {{streams/src/main/java/org/apache/kafka/streams/query/WindowKeyQuery.java}} has the wrong parameter order in the {{private}} ctor. The builder method withKeyAndWindowStartRange invokes the constructor with
> {{new WindowKeyQuery<>(key, {*}Optional.of(timeFrom), Optional.of(timeTo){*})}}
> while the order is
> {{private WindowKeyQuery(final K key, {*}final Optional<Instant> timeTo, final Optional<Instant> timeFrom{*})}}
> The actual order should be
> {{private WindowKeyQuery(final K key, {*}final Optional<Instant> timeFrom, final Optional<Instant> timeTo{*})}}
> While this has been noticed and fixed on the trunk branch as part of [KAKFA-20705|https://issues.apache.org/jira/browse/KAFKA-20705], there is no dedicated issue nor it's fixed in already released Kafka versions.
> Could we backport this, at least for Kafka 4.x? I'd be willing to submit a PR.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)