This is an automated email from the ASF dual-hosted git repository. panxiaolei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 2a731003892 [Chore](catch) add catch exception on sync_filter_size (#49804) 2a731003892 is described below commit 2a73100389215b207e0b10883a1d97b898c1b96c Author: Pxl <x...@selectdb.com> AuthorDate: Thu Apr 3 21:04:31 2025 +0800 [Chore](catch) add catch exception on sync_filter_size (#49804) ### What problem does this PR solve? add catch exception on sync_filter_size ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [x] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [x] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [x] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [x] No. - [ ] Yes. <!-- Add document PR link here. eg: https://github.com/apache/doris-website/pull/1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into --> --- be/src/runtime/fragment_mgr.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/be/src/runtime/fragment_mgr.cpp b/be/src/runtime/fragment_mgr.cpp index f7980e41c91..679b1052845 100644 --- a/be/src/runtime/fragment_mgr.cpp +++ b/be/src/runtime/fragment_mgr.cpp @@ -56,6 +56,7 @@ #include <utility> #include "common/config.h" +#include "common/exception.h" #include "common/logging.h" #include "common/object_pool.h" #include "common/status.h" @@ -1326,7 +1327,13 @@ Status FragmentMgr::sync_filter_size(const PSyncFilterSizeRequest* request) { query_id.__set_hi(queryid.hi); query_id.__set_lo(queryid.lo); if (auto q_ctx = get_query_ctx(query_id)) { - return q_ctx->runtime_filter_mgr()->sync_filter_size(request); + try { + return q_ctx->runtime_filter_mgr()->sync_filter_size(request); + } catch (const Exception& e) { + return Status::InternalError( + "Sync filter size failed: Query context (query-id: {}) error: {}", + queryid.to_string(), e.what()); + } } else { return Status::EndOfFile( "Sync filter size failed: Query context (query-id: {}) already finished", --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org