This is an automated email from the ASF dual-hosted git repository.
gabriellee 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 948e080b31 [minor](error msg) Fix wrong error message (#13950)
948e080b31 is described below
commit 948e080b31179328d398dc420cb30b021bf682a3
Author: Gabriel <[email protected]>
AuthorDate: Fri Nov 4 13:49:46 2022 +0800
[minor](error msg) Fix wrong error message (#13950)
---
be/src/service/doris_main.cpp | 1 -
be/src/util/libjvm_loader.cpp | 4 ++--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/be/src/service/doris_main.cpp b/be/src/service/doris_main.cpp
index b6a7e3a118..3b53e6dc31 100644
--- a/be/src/service/doris_main.cpp
+++ b/be/src/service/doris_main.cpp
@@ -381,7 +381,6 @@ int main(int argc, char** argv) {
status = doris::JniUtil::Init();
if (!status.ok()) {
LOG(WARNING) << "Failed to initialize JNI: " << status.get_error_msg();
- doris::shutdown_logging();
exit(1);
}
#endif
diff --git a/be/src/util/libjvm_loader.cpp b/be/src/util/libjvm_loader.cpp
index abd0a4863b..127d28c2de 100644
--- a/be/src/util/libjvm_loader.cpp
+++ b/be/src/util/libjvm_loader.cpp
@@ -38,7 +38,7 @@ doris::Status resolve_symbol(T& pointer, void* handle, const
char* symbol) {
pointer = reinterpret_cast<T>(dlsym(handle, symbol));
return (pointer != nullptr)
? doris::Status::OK()
- : doris::Status::RuntimeError("Failed to resolve the symbol
%s", symbol);
+ : doris::Status::RuntimeError("Failed to resolve the symbol
{}", symbol);
}
} // namespace
@@ -71,7 +71,7 @@ LibJVMLoader& LibJVMLoader::instance() {
Status LibJVMLoader::load() {
if (_library.empty()) {
- return Status::RuntimeError("Failed to find the library %s.",
LIBJVM_SO);
+ return Status::RuntimeError("Failed to find the library {}.",
LIBJVM_SO);
}
static std::once_flag resolve_symbols;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]