@@ -25,7 +25,6 @@ use common_exception::ErrorCode;
2525use common_exception:: Result ;
2626use common_meta_types:: UserInfo ;
2727use common_storage:: StorageOperator ;
28- use futures:: future:: AbortHandle ;
2928use opendal:: Operator ;
3029use parking_lot:: Mutex ;
3130use parking_lot:: RwLock ;
@@ -68,7 +67,6 @@ pub struct QueryContextShared {
6867 pub ( in crate :: sessions) runtime : Arc < RwLock < Option < Arc < Runtime > > > > ,
6968 pub ( in crate :: sessions) init_query_id : Arc < RwLock < String > > ,
7069 pub ( in crate :: sessions) cluster_cache : Arc < Cluster > ,
71- pub ( in crate :: sessions) sources_abort_handle : Arc < RwLock < Vec < AbortHandle > > > ,
7270 pub ( in crate :: sessions) subquery_index : Arc < AtomicUsize > ,
7371 pub ( in crate :: sessions) running_query : Arc < RwLock < Option < String > > > ,
7472 pub ( in crate :: sessions) http_query : Arc < RwLock < Option < HttpQueryHandle > > > ,
@@ -99,7 +97,6 @@ impl QueryContextShared {
9997 write_progress : Arc :: new ( Progress :: create ( ) ) ,
10098 error : Arc :: new ( Mutex :: new ( None ) ) ,
10199 runtime : Arc :: new ( RwLock :: new ( None ) ) ,
102- sources_abort_handle : Arc :: new ( RwLock :: new ( Vec :: new ( ) ) ) ,
103100 subquery_index : Arc :: new ( AtomicUsize :: new ( 1 ) ) ,
104101 running_query : Arc :: new ( RwLock :: new ( None ) ) ,
105102 http_query : Arc :: new ( RwLock :: new ( None ) ) ,
@@ -123,11 +120,6 @@ impl QueryContextShared {
123120 executor. finish ( Some ( cause) ) ;
124121 }
125122
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- }
131123 // TODO: Wait for the query to be processed (write out the last error)
132124 }
133125
@@ -256,11 +248,6 @@ impl QueryContextShared {
256248 running_query. as_ref ( ) . unwrap_or ( & "" . to_string ( ) ) . clone ( )
257249 }
258250
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-
264251 pub fn get_config ( & self ) -> Config {
265252 self . config . clone ( )
266253 }
0 commit comments