Skip to content

Commit

Permalink
[UT] Fix unstable case for restoreJob (backport #53423) (#53446)
Browse files Browse the repository at this point in the history
Co-authored-by: srlch <[email protected]>
  • Loading branch information
mergify[bot] and srlch authored Dec 3, 2024
1 parent 7fcc78f commit 938920a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions fe/fe-core/src/test/java/com/starrocks/backup/RestoreJobTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Long, Long>) any, anyBoolean);
minTimes = 0;
result = com.starrocks.common.Status.OK;
Expand Down Expand Up @@ -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<Long, Long>) any, anyBoolean);
minTimes = 0;
result = com.starrocks.common.Status.OK;
Expand Down Expand Up @@ -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<Long, Long>) any, anyBoolean);
minTimes = 0;
result = com.starrocks.common.Status.OK;
Expand Down

0 comments on commit 938920a

Please sign in to comment.