From 938920a30de17b7745b6eef5a141620119e371ad Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 07:37:28 +0000 Subject: [PATCH] [UT] Fix unstable case for restoreJob (backport #53423) (#53446) Co-authored-by: srlch <111035020+srlch@users.noreply.github.com> --- .../com/starrocks/backup/RestoreJobTest.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/fe/fe-core/src/test/java/com/starrocks/backup/RestoreJobTest.java b/fe/fe-core/src/test/java/com/starrocks/backup/RestoreJobTest.java index 5eb1814968bc6..7e5220e129f69 100644 --- a/fe/fe-core/src/test/java/com/starrocks/backup/RestoreJobTest.java +++ b/fe/fe-core/src/test/java/com/starrocks/backup/RestoreJobTest.java @@ -222,6 +222,14 @@ public void testRunBackupMultiSubPartitionTable() { minTimes = 0; result = beIds; + systemInfoService.getBackend(anyLong); + minTimes = 0; + result = null; + + systemInfoService.getComputeNode(anyLong); + minTimes = 0; + result = null; + systemInfoService.checkExceedDiskCapacityLimit((Multimap) any, anyBoolean); minTimes = 0; result = com.starrocks.common.Status.OK; @@ -398,6 +406,14 @@ public void testRunBackupRangeTable() { minTimes = 0; result = beIds; + systemInfoService.getBackend(anyLong); + minTimes = 0; + result = null; + + systemInfoService.getComputeNode(anyLong); + minTimes = 0; + result = null; + systemInfoService.checkExceedDiskCapacityLimit((Multimap) any, anyBoolean); minTimes = 0; result = com.starrocks.common.Status.OK; @@ -561,6 +577,14 @@ public void testRunBackupListTable() { minTimes = 0; result = beIds; + systemInfoService.getBackend(anyLong); + minTimes = 0; + result = null; + + systemInfoService.getComputeNode(anyLong); + minTimes = 0; + result = null; + systemInfoService.checkExceedDiskCapacityLimit((Multimap) any, anyBoolean); minTimes = 0; result = com.starrocks.common.Status.OK;