From 8420e647d20392dc0d9d84fd47bf83bc89880199 Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Mon, 4 Aug 2025 19:44:11 +0800 Subject: [PATCH] [fix](case) catch exception to figure out failures (#54282) --- .../compaction9/test_schema_change_with_compaction9.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/regression-test/suites/cloud_p0/schema_change/compaction9/test_schema_change_with_compaction9.groovy b/regression-test/suites/cloud_p0/schema_change/compaction9/test_schema_change_with_compaction9.groovy index 4a9ea8ea41e177..316b10283b1df6 100644 --- a/regression-test/suites/cloud_p0/schema_change/compaction9/test_schema_change_with_compaction9.groovy +++ b/regression-test/suites/cloud_p0/schema_change/compaction9/test_schema_change_with_compaction9.groovy @@ -60,8 +60,10 @@ suite('test_schema_change_with_compaction9', 'docker') { // check load state while (true) { def stateResult = sql "show load where Label = '${loadLabel}'" + logger.info("State result: " + stateResult) def loadState = stateResult[stateResult.size() - 1][2].toString() if ("CANCELLED".equalsIgnoreCase(loadState)) { + logger.error("Load ${loadLabel} cancelled.") throw new IllegalStateException("load ${loadLabel} failed.") } else if ("FINISHED".equalsIgnoreCase(loadState)) { break @@ -164,6 +166,9 @@ suite('test_schema_change_with_compaction9', 'docker') { cluster.restartFrontends() sleep(30000) context.reconnectFe() + } catch (Exception e) { + logger.error("Exception: " + e.getMessage()) + assertEquals(1, 2) } finally { if (injectBe != null) { GetDebugPoint().disableDebugPointForAllBEs(injectName)