[ 
https://issues.apache.org/jira/browse/KAFKA-14400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17636407#comment-17636407
 ] 

A. Sophie Blee-Goldman commented on KAFKA-14400:
------------------------------------------------

Is this happening because the actual APIs are doing something different (which 
seems unlikely), or because one of them has a grace period of 0 whereas the 
deprecated version used a grace period of 24 hours? It's not really an exact 
comparison, these have different semantics – I suspect what's happening is that 
the joiner is never called on some records because they arrived out of order 
and outside the grace period (which is 0), ie they are "late" and dropped on 
the floor.

If you don't want to ignore any out-of-order records, try using 
ofTimeDifferenceAndGrace and setting some non-zero grace period

> KStream - KStream - LeftJoin() does not call ValueJoiner with null value 
> -------------------------------------------------------------------------
>
>                 Key: KAFKA-14400
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14400
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>    Affects Versions: 3.1.1, 3.3.1
>         Environment: Windows PC 
>            Reporter: Victor van den Hoven
>            Priority: Major
>         Attachments: SimpleStreamTopology.java, SimpleStreamTopologyTest.java
>
>
> In Kafka-streams 3.1.1 :
> When using +JoinWindows.ofTimeDifferenceWithNoGrace(Duration.ofMillis(10000))+
> the  KStream {*}leftJoin{*}(KStream otherStream, ValueJoiner {_}joiner{_}, 
> JoinWindows windows) does not seem to call the _joiner_ with null value when 
> join predicate is not satisfied (not expected).
>  
> When using deprecated +JoinWindows.of(Duration.ofMillis(10000));+
> the  KStream {*}leftJoin{*}(KStream otherStream, ValueJoiner {_}joiner{_}, 
> JoinWindows windows) does
> call the _joiner_ with null value when join predicate is not satisfied (as 
> expected and documented).
>  
> Attached you can find two files with TopologyTestDriver Unit test to 
> reproduce.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to