Skip to content

Commit f452c9e

Browse files
authored
[fix](regression case) fix test_recycler_index (apache#1168)
1 parent 1a4eb5a commit f452c9e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

regression-test/suites/cloud/recycler/test_recycler_index.groovy

+6-4
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,13 @@ suite("test_recycler_index") {
9090
}
9191
}
9292

93-
// do cloud compaction
94-
doCloudCompaction(tableName);
95-
9693
String[][] tabletInfoList = sql """ show tablets from ${tableName}; """
9794
logger.info("tabletInfoList:${tabletInfoList}")
95+
HashSet<String> tabletIdSet= new HashSet<String>()
96+
for (tabletInfo : tabletInfoList) {
97+
tabletIdSet.add(tabletInfo[0])
98+
}
99+
logger.info("tabletIdSet:${tabletIdSet}")
98100

99101
// drop table
100102
sql """ DROP TABLE IF EXISTS ${tableName} FORCE"""
@@ -105,7 +107,7 @@ suite("test_recycler_index") {
105107
do {
106108
triggerRecycle(token, instanceId)
107109
Thread.sleep(10000) // 1min
108-
if (checkRecycleTable(token, instanceId, cloudUniqueId, tableName, tabletInfoList)) {
110+
if (checkRecycleTable(token, instanceId, cloudUniqueId, tableName, tabletIdSet)) {
109111
success = true
110112
break
111113
}

0 commit comments

Comments
 (0)