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

ASF GitHub Bot commented on FLINK-10583:
----------------------------------------

pnowojski commented on a change in pull request #6871: [FLINK-10583][table] Add 
base TwoInputStreamOperator with TTL operator.
URL: https://github.com/apache/flink/pull/6871#discussion_r226330817
 
 

 ##########
 File path: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/runtime/join/AbstractTwoInputStreamOperatorWithTTL.scala
 ##########
 @@ -39,6 +38,15 @@ import org.apache.flink.table.runtime.types.CRow
   * state to cleanup and what further action to take.
   *
   * This class takes care of maintaining at most one timer per key.
+  *
+  * <p><b>IMPORTANT NOTE TO USERS:</b> When extending this class, do not use 
processing time
+  * timers in your business logic. The reason is that:
+  *
+  * 1) if your timers collide with clean up timers and you delete them, then 
state
+  * clean-up will not be performed, and
+  *
+  * 2) (this one is the reason why this class does not allow to override the 
onProcessingTime())
+  * the onProcessingTime with your logic would be also executed on each clean 
up timer.
   */
 @PublicEvolving
 abstract class AbstractTwoInputStreamOperatorWithTTL(
 
 Review comment:
   Maybe rename it to `TwoInputStreamOperatorWithStateRetention`? I think name 
TTL is confusing with TTL in state backend while "state retention" is something 
different. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Add support for state retention to the Processing Time versioned joins.
> -----------------------------------------------------------------------
>
>                 Key: FLINK-10583
>                 URL: https://issues.apache.org/jira/browse/FLINK-10583
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API &amp; SQL
>    Affects Versions: 1.7.0
>            Reporter: Kostas Kloudas
>            Assignee: Kostas Kloudas
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.7.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to