Skip to content
Draft

wip #509

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/coordinator/distributed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl ExecutionPlan for DistributedExec {
let tx = builder.tx();

builder.spawn(async move {
let _guard = query_coordinator.end_query_guard();
let guard = query_coordinator.end_query_guard();

let result = prepare_static_plan(&query_coordinator, &base_plan)?;

Expand All @@ -214,6 +214,8 @@ impl ExecutionPlan for DistributedExec {
break; // channel closed
}
}
drop(stream);
drop(guard);
drop(tx);
query_coordinator.drain_pending_tasks().await?;
Ok(())
Expand Down
3 changes: 3 additions & 0 deletions src/execution_plans/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ mod network_broadcast;
mod network_coalesce;
mod network_shuffle;

#[cfg(test)]
mod orphaned_task_cleanup_tests;

#[cfg(any(test, feature = "integration"))]
pub mod benchmarks;

Expand Down
Loading
Loading