File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
trino-lb/src/http_server/v1 Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,14 @@ All notable changes to this project will be documented in this file.
2222### Fixed
2323
2424- Set connection and response timeout for Redis connections ([ #85 ] ).
25+ - Only remove queries from the persistence in case they don't send a ` nextUri ` and are in state ` FINISHED ` ([ #98 ] ).
2526
2627[ #68 ] : https://github.com/stackabletech/trino-lb/pull/68
2728[ #85 ] : https://github.com/stackabletech/trino-lb/pull/85
2829[ #86 ] : https://github.com/stackabletech/trino-lb/pull/86
2930[ #91 ] : https://github.com/stackabletech/trino-lb/pull/91
3031[ #95 ] : https://github.com/stackabletech/trino-lb/pull/95
32+ [ #98 ] : https://github.com/stackabletech/trino-lb/pull/98
3133
3234## [ 0.5.0] - 2025-03-14
3335
Original file line number Diff line number Diff line change @@ -458,8 +458,7 @@ async fn handle_query_running_on_trino(
458458 // Just to be safe the query needs to be completed and not contain any nextUri for the client
459459 // to call to, before being considered done. We don't expect any future calls to done queries,
460460 // so we can (hopefully) safely remove them from the persistence.
461- if trino_query_api_response. is_query_finished ( ) && !trino_query_api_response. next_uri . is_some ( )
462- {
461+ if trino_query_api_response. is_query_finished ( ) && trino_query_api_response. next_uri . is_none ( ) {
463462 info ! ( %query_id, "Query completed, removing it from the persistence" ) ;
464463
465464 tokio:: try_join!(
You can’t perform that action at this time.
0 commit comments