Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
zclllyybb committed Sep 12, 2024
1 parent ab2c1cc commit 59f86bb
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,18 @@ suite("test_auto_dynamic", "nonConcurrent") {
part_result = sql " show partitions from auto_dynamic "
assertEquals(part_result.size, 1)

sql " insert into auto_dynamic values ('2024-01-01'), ('2900-01-01'), ('1900-01-01'), ('3000-01-01'); "
test {
sql " insert into auto_dynamic values ('2024-01-01'), ('2900-01-01'), ('1900-01-01'), ('3000-01-01'); "
check { result, exception, startTime, endTime ->
if (exception != null) {
// the partition of 1900-01-01 directly been recovered. let it success
part_result = sql " show partitions from auto_dynamic "
log.info("${part_result}".toString())
assertTrue(exception.getMessage().contains("get partition p19000101000000 failed"))
return true
}
}
}
sql """ admin set frontend config ('dynamic_partition_check_interval_seconds' = '1') """
sleep(2000)
part_result = sql " show partitions from auto_dynamic "
Expand Down

0 comments on commit 59f86bb

Please sign in to comment.