You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/12/10 13:58:40 UTC

[GitHub] [flink] KarmaGYZ commented on a change in pull request #10348: [FLINK-14951][tests] Harden the thread safety of State TTL backend tests

KarmaGYZ commented on a change in pull request #10348: [FLINK-14951][tests] Harden the thread safety of State TTL backend tests
URL: https://github.com/apache/flink/pull/10348#discussion_r356050385
 
 

 ##########
 File path: flink-end-to-end-tests/flink-stream-state-ttl-test/src/main/java/org/apache/flink/streaming/tests/MonotonicTTLTimeProvider.java
 ##########
 @@ -54,14 +57,24 @@
 	private static final Object lock = new Object();
 
 	@GuardedBy("lock")
-	static long freeze() {
+	static <T, E extends Throwable> T doWithFrozenTime(FunctionWithException<Long, T, E> action) throws E {
 
 Review comment:
   Thanks for the explanation! I'll follow this style guide from now on.

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


With regards,
Apache Git Services