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

Jark Wu resolved FLINK-15938.
-----------------------------
    Resolution: Fixed

Fixed in 1.9.3: f5a658981bd86abeec6750fcf1e19a43a561fc5f

> Idle state not cleaned in StreamingJoinOperator and 
> StreamingSemiAntiJoinOperator
> ---------------------------------------------------------------------------------
>
>                 Key: FLINK-15938
>                 URL: https://issues.apache.org/jira/browse/FLINK-15938
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Planner
>    Affects Versions: 1.9.2
>            Reporter: Benchao Li
>            Assignee: Benchao Li
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 1.9.3
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {code:java}
> return StateTtlConfig
>    .newBuilder(Time.milliseconds(retentionTime))
>    .setUpdateType(StateTtlConfig.UpdateType.OnCreateAndWrite)
>    
> .setStateVisibility(StateTtlConfig.StateVisibility.ReturnExpiredIfNotCleanedUp)
>    .build();
> {code}
> StateTtl is constructed in above code for `StreamingJoinOperator` and 
> `StreamingSemiAntiJoinOperator`.
> However, as stated in 
> [https://ci.apache.org/projects/flink/flink-docs-master/dev/stream/state/state.html#cleanup-of-expired-state]
>  , the state will be cleaned only when it's read which means the state will 
> not be cleaned enless we read it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to