Skip to content

Commit

Permalink
fix(ci): fix background ddl recovery test (#15861) (#15915)
Browse files Browse the repository at this point in the history
Co-authored-by: Noel Kwan <[email protected]>
  • Loading branch information
github-actions[bot] and kwannoel authored Mar 26, 2024
1 parent 446d04c commit e77c7b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/meta/src/rpc/ddl_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2060,8 +2060,8 @@ impl DdlController {
}

pub async fn wait(&self) -> MetaResult<()> {
let timeout_secs = 30 * 60;
for _ in 0..timeout_secs {
let timeout_ms = 30 * 60 * 1000;
for _ in 0..timeout_ms {
match &self.metadata_manager {
MetadataManager::V1(mgr) => {
if mgr
Expand All @@ -2085,10 +2085,10 @@ impl DdlController {
}
}

sleep(Duration::from_secs(1)).await;
sleep(Duration::from_millis(1)).await;
}
Err(MetaError::cancelled(format!(
"timeout after {timeout_secs}s"
"timeout after {timeout_ms}ms"
)))
}

Expand Down

0 comments on commit e77c7b3

Please sign in to comment.