[fix](schema-change) Fix null new tablet when cleaning up sc job on failure#53952
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
run buildall |
| void CloudSchemaChangeJob::clean_up_on_failed() { | ||
| void CloudSchemaChangeJob::clean_up_on_failure() { | ||
| if (_new_tablet == nullptr) { | ||
| return; |
There was a problem hiding this comment.
I think log here is pointless.
If get tablet failed, we could find details through log msg like this one:
W20250727 00:45:38.585387 5797 cloud_tablet_mgr.cpp:206] failed to tablet 1753547556254: [INVALID_ARGUMENT]failed to get tablet meta: empty instance_id
W20250727 00:45:38.599696 5797 status.h:426] meet error status: [INTERNAL_ERROR]failed to get tablet 1753547556254
0# doris::CloudTabletMgr::get_tablet(long, bool, bool, doris::SyncRowsetStats*, bool) at /home/zcp/repo_center/doris_branch-3.0/doris/be/src/common/status.h:378
1# doris::CloudSchemaChangeJob::process_alter_tablet(doris::TAlterTabletReqV2 const&) at /home/zcp/repo_center/doris_branch-3.0/doris/be/src/util/expected.hpp:1986
2# doris::alter_cloud_tablet_callback(doris::CloudStorageEngine&, doris::TAgentTaskRequest const&) at /home/zcp/repo_center/doris_branch-3.0/doris/be/src/common/status.h:505
3# std::_Function_handler<void (), doris::TaskWorkerPool::submit_task(doris::TAgentTaskRequest const&)::$_0::operator()<doris::TAgentTaskRequest const&>(doris::TAgentTaskRequest const&) const::{lambda()#1}>::_M_invoke(std::_Any_data const&) at /home/zcp/repo_center/doris_branch-3.0/doris/be/src/agent/task_worker_pool.cpp:546
4# doris::ThreadPool::dispatch_thread() at /var/local/ldb-toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h:1267
5# doris::Thread::supervise_thread(void*) at /var/local/ldb-toolchain/bin/../usr/include/pthread.h:563
6# ?
7# ?
b8326b2 to
991844b
Compare
|
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
|
PR approved by at least one committer and no changes requested. |
991844b to
0f1aeb9
Compare
|
run buildall |
TPC-H: Total hot run time: 34123 ms |
TPC-DS: Total hot run time: 173276 ms |
ClickBench: Total hot run time: 32.79 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
…ailure (#53952) ### What problem does this PR solve? Problem Summary: 1. New tablet cloud be nullptr when get tablet action failed, take it into account. 2. Fix grammer error of the method signature.
…ailure (#53952) ### What problem does this PR solve? Problem Summary: 1. New tablet cloud be nullptr when get tablet action failed, take it into account. 2. Fix grammer error of the method signature.
…ailure (apache#53952) (apache#4247) 1. New tablet cloud be nullptr when get tablet action failed, take it into account. 2. Fix grammer error of the method signature.
What problem does this PR solve?
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)