Skip to content

Commit

Permalink
[fix](regression test) fix test_report_version_missing due to set for…
Browse files Browse the repository at this point in the history
…ce_olap_table_replication_num #38211 (#38232)

cherry pick from #38211
  • Loading branch information
yujun777 authored Jul 23, 2024
1 parent 33e04b1 commit e28dcda
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ import org.apache.doris.regression.suite.ClusterOptions
import org.apache.doris.regression.util.NodeType

suite('test_report_version_missing', "nonConcurrent") {
if (isCloudMode()) {
return
}
def tableName = "test_set_replica_status_table_in_docker"
try {
setFeConfig('disable_tablet_scheduler', true)
Thread.sleep(2000)

sql "DROP TABLE IF EXISTS ${tableName}"
sql """
CREATE TABLE ${tableName} (
Expand All @@ -45,7 +52,7 @@ suite('test_report_version_missing', "nonConcurrent") {
tabletId = res.TabletId
break
}
try {

GetDebugPoint().enableDebugPointForAllBEs("Tablet.build_tablet_report_info.version_miss", [tablet_id:"${tabletId}",version_miss:true])
boolean succ = false

Expand All @@ -68,6 +75,8 @@ suite('test_report_version_missing', "nonConcurrent") {
assertTrue(succ)

} finally {
setFeConfig('disable_tablet_scheduler', false)
GetDebugPoint().disableDebugPointForAllBEs("Tablet.build_tablet_report_info.version_miss")
sql "DROP TABLE IF EXISTS ${tableName}"
}
}
}

0 comments on commit e28dcda

Please sign in to comment.