This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 5ae9cf7ee6f branch-3.0: [Fix](case) Fix case
`test_key_bounds_truncation_write_scenarios` #51761 (#51788)
5ae9cf7ee6f is described below
commit 5ae9cf7ee6fe2ef53f8af34efe4b34de98c7c41f
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Jun 18 12:14:32 2025 +0800
branch-3.0: [Fix](case) Fix case
`test_key_bounds_truncation_write_scenarios` #51761 (#51788)
Cherry-picked from #51761
Co-authored-by: bobhan1 <[email protected]>
---
...st_key_bounds_truncation_write_scenarios.groovy | 36 +---------------------
1 file changed, 1 insertion(+), 35 deletions(-)
diff --git
a/regression-test/suites/unique_with_mow_p0/key_bounds/test_key_bounds_truncation_write_scenarios.groovy
b/regression-test/suites/unique_with_mow_p0/key_bounds/test_key_bounds_truncation_write_scenarios.groovy
index bbb479a7bd3..27dc9c32aa7 100644
---
a/regression-test/suites/unique_with_mow_p0/key_bounds/test_key_bounds_truncation_write_scenarios.groovy
+++
b/regression-test/suites/unique_with_mow_p0/key_bounds/test_key_bounds_truncation_write_scenarios.groovy
@@ -242,41 +242,7 @@ suite("test_key_bounds_truncation_write_scenarios",
"nonConcurrent") {
logger.info("============= compaction ==============")
set_be_param("segments_key_bounds_truncation_threshold", 8)
Thread.sleep(2000)
- def triggerFullCompaction = {
- def beNodes = sql_return_maparray("show backends;")
- def tabletStat = sql_return_maparray("show tablets from
${tableName};").get(0)
- def tabletBackendId = tabletStat.BackendId
- def tabletId = tabletStat.TabletId
- def tabletBackend;
- for (def be : beNodes) {
- if (be.BackendId == tabletBackendId) {
- tabletBackend = be
- break;
- }
- }
-
- logger.info("trigger compaction on another BE
${tabletBackend.Host} with backendId=${tabletBackend.BackendId}")
- def (code, out, err) = be_run_full_compaction(tabletBackend.Host,
tabletBackend.HttpPort, tabletId)
- logger.info("Run compaction: code=" + code + ", out=" + out + ",
err=" + err)
- assertEquals(code, 0)
- def compactJson = parseJson(out.trim())
- assertEquals("success", compactJson.status.toLowerCase())
-
- // wait for full compaction to complete
- Awaitility.await().atMost(3, TimeUnit.SECONDS).pollDelay(200,
TimeUnit.MILLISECONDS).pollInterval(100, TimeUnit.MILLISECONDS).until(
- {
- (code, out, err) =
be_get_compaction_status(tabletBackend.Host, tabletBackend.HttpPort, tabletId)
- logger.info("Get compaction status: code=" + code + ",
out=" + out + ", err=" + err)
- assertEquals(code, 0)
- def compactionStatus = parseJson(out.trim())
- assertEquals("success",
compactionStatus.status.toLowerCase())
- return !compactionStatus.run_status
- }
- )
- }
-
- // trigger full compaction on tablet
- triggerFullCompaction()
+ trigger_and_wait_compaction(tableName, "full")
checkKeyBounds(8)
qt_sql "select count(*) from ${tableName};"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]