Closed andylokandy closed 3 weeks ago
Key changes in src/binaries/query
directory
This PR heavily modifies error handling in the application by making use of a common error handling library and a new MainError
type for main functions like run_cmd
and start_services
in the query
binary.
ee_main.rs
, entry.rs
and oss_main.rs
files in the query
binary now leverage databend_common_exception::ResultExt
and entry::MainError
for error handling improving error tracking and debugging.Major updates in src/common/base/src/runtime
directory
CatchUnwindError Struct Added
The catch_unwind.rs
file now includes a CatchUnwindError
struct to handle errors better in runtime.
Block error handling improved
The runtime.rs
file has adjusted the handling of blocking on a future by mapping a failure to a CatchUnwindError
.
Important modifications in src/common/exception/src
directory
context.rs
and exception.rs
files have had several adjustments improving the clarity and information provided from errors.Critical changes in src/query/service/src/interpreters
directory
interpreter.rs
file and interpreter_table_recluster.rs
file have introduced databend_common_exception::ResultExt
for enhanced error management during execution.Various files updated
Various files have been updated to implement databend_common_exception::ResultExt
, which will help to handle errors more proficiently throughout the software. Notably, changes are made in query log
, executor_graph
, pipeline_executor
, http_query
. query_ctx
, session
, commit
, gc
, navigate
, and several test files are also updated to use ResultExt
.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
Tests
Type of change
This change isโ