CalvinKirs opened a new pull request, #50839:
URL: https://github.com/apache/doris/pull/50839
### What problem does this PR solve?
Added a call to makeSureInitialized() in the getPreExecutionAuthenticator()
method to ensure that preExecutionAuthenticator is properly initialized before
being accessed.
This change improves the robustness of the code by guaranteeing that the
required initialization logic is executed, preventing potential null references
or incomplete setup.
```
W 2025-05-13 04:57:21,496 14827 status.h:451] meet error status:
[INTERNAL_ERROR]TStatus: NullPointerException: Cannot invoke
"org.apache.doris.common.security.authentication.PreExecutionAuthenticator.execute(java.util.concurrent.Callable)"
because the return value of
"org.apache.doris.datasource.ExternalCatalog.getPreExecutionAuthenticator()" is
null
0# doris::Status doris::Status::create<true>(doris::TStatus const&) at
/var/local/ldb-toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:658
1#
doris::vectorized::MetaScanner::_fetch_metadata(doris::TMetaScanRange const&)
at /home/zcp/repo_center/doris_master/doris/be/src/common/status.h:517
2# doris::vectorized::MetaScanner::open(doris::RuntimeState*) at
/home/zcp/repo_center/doris_master/doris/be/src/common/status.h:517
3#
doris::vectorized::ScannerScheduler::_scanner_scan(std::shared_ptr<doris::vectorized::ScannerContext>,
std::shared_ptr<doris::vectorized::ScanTask>) at
/home/zcp/repo_center/doris_master/doris/be/src/vec/exec/scan/scanner_scheduler.cpp:0
4# std::_Function_handler<void (),
doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>,
std::shared_ptr<doris::vectorized::ScanTask>)::$_1::operator()()
const::{lambda()#1}>::_M_invoke(std::_Any_data const&) at
/var/local/ldb-toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h:1149
5# doris::ThreadPool::dispatch_thread() at
/home/zcp/repo_center/doris_master/doris/be/src/util/threadpool.cpp:0
6# doris::Thread::supervise_thread(void*) at
/var/local/ldb-toolchain/bin/../usr/include/pthread.h:563
7# ?
8# ?
W 2025-05-13 04:57:21,496 14827 meta_scanner.cpp:295] fetch schema table
data from master failed, errmsg=[INTERNAL_ERROR]TStatus: NullPointerException:
Cannot invoke
"org.apache.doris.common.security.authentication.PreExecutionAuthenticator.execute(java.util.concurrent.Callable)"
because the return value of
"org.apache.doris.datasource.ExternalCatalog.getPreExecutionAuthenticator()" is
null
```
### Release note
None
### 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)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] 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 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]