Skip to content

Commit 80a9d0a

Browse files
committed
fix(cluster) try fix test failure
1 parent 43332a1 commit 80a9d0a

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/query/service/src/api/rpc/exchange/statistics_receiver.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ impl StatisticsReceiver {
9090
notified = middle;
9191
match Self::recv_data(&ctx, res) {
9292
Ok(true) => {
93+
ctx.get_current_session().force_kill_query();
9394
return Ok(());
9495
}
9596
Ok(false) => {

src/query/service/src/api/rpc/exchange/statistics_sender.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,10 @@ impl StatisticsSender {
9090
notified = right;
9191
recv = Box::pin(flight_exchange.recv());
9292

93-
if !shutdown_flag.load(Ordering::Relaxed) {
94-
if let Err(_cause) =
95-
Self::on_command(&ctx, command, &flight_exchange).await
96-
{
97-
ctx.get_exchange_manager().shutdown_query(&query_id);
98-
return;
99-
}
93+
if let Err(_cause) = Self::on_command(&ctx, command, &flight_exchange).await
94+
{
95+
ctx.get_exchange_manager().shutdown_query(&query_id);
96+
return;
10097
}
10198
}
10299
}

0 commit comments

Comments
 (0)