@@ -25,7 +25,6 @@ use common_exception::ErrorCode;
25
25
use common_exception:: Result ;
26
26
use common_meta_types:: UserInfo ;
27
27
use common_storage:: StorageOperator ;
28
- use futures:: future:: AbortHandle ;
29
28
use opendal:: Operator ;
30
29
use parking_lot:: Mutex ;
31
30
use parking_lot:: RwLock ;
@@ -68,7 +67,6 @@ pub struct QueryContextShared {
68
67
pub ( in crate :: sessions) runtime : Arc < RwLock < Option < Arc < Runtime > > > > ,
69
68
pub ( in crate :: sessions) init_query_id : Arc < RwLock < String > > ,
70
69
pub ( in crate :: sessions) cluster_cache : Arc < Cluster > ,
71
- pub ( in crate :: sessions) sources_abort_handle : Arc < RwLock < Vec < AbortHandle > > > ,
72
70
pub ( in crate :: sessions) subquery_index : Arc < AtomicUsize > ,
73
71
pub ( in crate :: sessions) running_query : Arc < RwLock < Option < String > > > ,
74
72
pub ( in crate :: sessions) http_query : Arc < RwLock < Option < HttpQueryHandle > > > ,
@@ -99,7 +97,6 @@ impl QueryContextShared {
99
97
write_progress : Arc :: new ( Progress :: create ( ) ) ,
100
98
error : Arc :: new ( Mutex :: new ( None ) ) ,
101
99
runtime : Arc :: new ( RwLock :: new ( None ) ) ,
102
- sources_abort_handle : Arc :: new ( RwLock :: new ( Vec :: new ( ) ) ) ,
103
100
subquery_index : Arc :: new ( AtomicUsize :: new ( 1 ) ) ,
104
101
running_query : Arc :: new ( RwLock :: new ( None ) ) ,
105
102
http_query : Arc :: new ( RwLock :: new ( None ) ) ,
@@ -123,11 +120,6 @@ impl QueryContextShared {
123
120
executor. finish ( Some ( cause) ) ;
124
121
}
125
122
126
- let mut sources_abort_handle = self . sources_abort_handle . write ( ) ;
127
-
128
- while let Some ( source_abort_handle) = sources_abort_handle. pop ( ) {
129
- source_abort_handle. abort ( ) ;
130
- }
131
123
// TODO: Wait for the query to be processed (write out the last error)
132
124
}
133
125
@@ -256,11 +248,6 @@ impl QueryContextShared {
256
248
running_query. as_ref ( ) . unwrap_or ( & "" . to_string ( ) ) . clone ( )
257
249
}
258
250
259
- pub fn add_source_abort_handle ( & self , handle : AbortHandle ) {
260
- let mut sources_abort_handle = self . sources_abort_handle . write ( ) ;
261
- sources_abort_handle. push ( handle) ;
262
- }
263
-
264
251
pub fn get_config ( & self ) -> Config {
265
252
self . config . clone ( )
266
253
}
0 commit comments