[ https://issues.apache.org/jira/browse/FLINK-10531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16679915#comment-16679915 ]
ASF GitHub Bot commented on FLINK-10531: ---------------------------------------- azagrebin commented on issue #7036: [FLINK-10531][e2e] Fix unstable TTL end-to-end test. URL: https://github.com/apache/flink/pull/7036#issuecomment-437038969 I agree that configuring custom processing time provider on the API side is more robust approach for tests. The change might be a bit more involving. I have created issues to consider it: FLINK-10830, FLINK-10831. One more option is to check if `currentTimeMillis` jumped back in `TtlVerifyUpdateFunction.performUpdate` relatively to the latest consumed value. If jump happened then just wait until it returns the next value greater than the latest consumed value. This way the update never needs to be rejected for this reason and test restarted. There is still potential subtle problem (could be not really practical) if: - `timestampBeforeUpdate` gets increased value - Flink gets jumped back `currentTimeMillis` - lag happens and - `timestampAfterUpdate` gets again increased value. In this case, the time queried by Flink is completely out of test control and without plugging the time there is no way to sync it in Flink and test. ---------------------------------------------------------------- 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 > State TTL RocksDb backend end-to-end test failed on Travis > ---------------------------------------------------------- > > Key: FLINK-10531 > URL: https://issues.apache.org/jira/browse/FLINK-10531 > Project: Flink > Issue Type: Bug > Components: Tests > Affects Versions: 1.6.1 > Reporter: Till Rohrmann > Assignee: Kostas Kloudas > Priority: Critical > Labels: pull-request-available, test-stability > Fix For: 1.7.0 > > > The {{State TTL RocksDb backend end-to-end test}} end-to-end test failed on > Travis. > https://travis-ci.org/apache/flink/jobs/438226190 > https://api.travis-ci.org/v3/job/438226190/log.txt -- This message was sent by Atlassian JIRA (v7.6.3#76005)