You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ro...@apache.org on 2022/03/27 10:58:00 UTC
[flink] branch release-1.15 updated: [FLINK-26615][tests] Fix timings in BatchingStateChangeUploadSchedulerTest.testUploadTimeout
This is an automated email from the ASF dual-hosted git repository.
roman pushed a commit to branch release-1.15
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.15 by this push:
new 0f475a4 [FLINK-26615][tests] Fix timings in BatchingStateChangeUploadSchedulerTest.testUploadTimeout
0f475a4 is described below
commit 0f475a42dfbcb1de0d2e796d01a70cabdf35c4ca
Author: Roman Khachatryan <kh...@gmail.com>
AuthorDate: Fri Mar 11 16:26:23 2022 +0100
[FLINK-26615][tests] Fix timings in BatchingStateChangeUploadSchedulerTest.testUploadTimeout
---
.../flink/changelog/fs/BatchingStateChangeUploadSchedulerTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/flink-dstl/flink-dstl-dfs/src/test/java/org/apache/flink/changelog/fs/BatchingStateChangeUploadSchedulerTest.java b/flink-dstl/flink-dstl-dfs/src/test/java/org/apache/flink/changelog/fs/BatchingStateChangeUploadSchedulerTest.java
index 2b13d91..f0d9cf2 100644
--- a/flink-dstl/flink-dstl-dfs/src/test/java/org/apache/flink/changelog/fs/BatchingStateChangeUploadSchedulerTest.java
+++ b/flink-dstl/flink-dstl-dfs/src/test/java/org/apache/flink/changelog/fs/BatchingStateChangeUploadSchedulerTest.java
@@ -220,19 +220,19 @@ public class BatchingStateChangeUploadSchedulerTest {
new ManuallyTriggeredScheduledExecutorService();
BlockingUploader uploader = new BlockingUploader();
try (BatchingStateChangeUploadScheduler store =
- scheduler(numAttempts, executorService, uploader, 10)) {
+ scheduler(numAttempts, executorService, uploader, 50)) {
store.upload(upload);
Deadline deadline = Deadline.fromNow(Duration.ofMinutes(5));
while (uploader.getUploadsCount() < numAttempts - 1 && deadline.hasTimeLeft()) {
executorService.triggerScheduledTasks();
executorService.triggerAll();
- Thread.sleep(10);
+ Thread.sleep(1); // should be less than timeout to avoid all attempts timing out
}
uploader.unblock();
while (!upload.finished.get() && deadline.hasTimeLeft()) {
executorService.triggerScheduledTasks();
executorService.triggerAll();
- Thread.sleep(10);
+ Thread.sleep(1);
}
}