From 2b521844f7daee09a15cea9a8f3e2bf1cb28f232 Mon Sep 17 00:00:00 2001 From: mchades Date: Tue, 20 Feb 2024 13:25:02 +0800 Subject: [PATCH] increase retry interval --- .../integration/test/container/HiveContainer.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/integration-test/src/test/java/com/datastrato/gravitino/integration/test/container/HiveContainer.java b/integration-test/src/test/java/com/datastrato/gravitino/integration/test/container/HiveContainer.java index b9543bb5d79..34d1d3276d7 100644 --- a/integration-test/src/test/java/com/datastrato/gravitino/integration/test/container/HiveContainer.java +++ b/integration-test/src/test/java/com/datastrato/gravitino/integration/test/container/HiveContainer.java @@ -66,6 +66,7 @@ public void start() { protected boolean checkContainerStatus(int retryLimit) { int nRetry = 0; boolean isHiveContainerReady = false; + int sleepTimeMillis = 10_000; while (nRetry++ < retryLimit) { try { String[] commandAndArgs = new String[] {"bash", "/tmp/check-status.sh"}; @@ -83,7 +84,12 @@ protected boolean checkContainerStatus(int retryLimit) { isHiveContainerReady = true; break; } - Thread.sleep(5000); + LOG.info( + "Hive container is not ready, recheck({}/{}) after {}ms", + nRetry, + retryLimit, + sleepTimeMillis); + Thread.sleep(sleepTimeMillis); } catch (RuntimeException e) { LOG.error(e.getMessage(), e); } catch (InterruptedException e) {