Skip to content

Commit

Permalink
clear tracker early
Browse files Browse the repository at this point in the history
  • Loading branch information
yezizp2012 committed Aug 7, 2024
1 parent 9474aa1 commit 9f0b27a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/meta/src/manager/catalog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ impl CatalogManagerCore {
{
let _ = tx.send(Err(err.clone()));
}
// Clear in progress creation streaming job. Note that background job is not tracked here, so that
// it won't affect background jobs.
self.database.in_progress_creation_streaming_job.clear();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,12 @@ async fn test_high_barrier_latency_cancel(config: Configuration) -> Result<()> {

session.run("CREATE TABLE fact1 (v1 int)").await?;
session
.run("INSERT INTO fact1 select 1 from generate_series(1, 100000)")
.run("INSERT INTO fact1 select 1 from generate_series(1, 10000)")
.await?;

session.run("CREATE TABLE fact2 (v1 int)").await?;
session
.run("INSERT INTO fact2 select 1 from generate_series(1, 100000)")
.run("INSERT INTO fact2 select 1 from generate_series(1, 10000)")
.await?;
session.flush().await?;

Expand Down

0 comments on commit 9f0b27a

Please sign in to comment.