This is an automated email from the ASF dual-hosted git repository.
dataroaring 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 041f71be864 [Fix](core) Fix initializing the WalManager could prevent
the BE from starting (#29688)
041f71be864 is described below
commit 041f71be86462e1a1d48b59e88e7f160e0677771
Author: abmdocrt <[email protected]>
AuthorDate: Thu Jan 11 10:12:10 2024 +0800
[Fix](core) Fix initializing the WalManager could prevent the BE from
starting (#29688)
---
be/src/olap/wal/wal_manager.cpp | 6 ++++--
be/src/runtime/exec_env_init.cpp | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/be/src/olap/wal/wal_manager.cpp b/be/src/olap/wal/wal_manager.cpp
index b1931f62a62..621a1aa0806 100644
--- a/be/src/olap/wal/wal_manager.cpp
+++ b/be/src/olap/wal/wal_manager.cpp
@@ -352,8 +352,10 @@ Status WalManager::add_recover_wal(int64_t db_id, int64_t
table_id, int64_t wal_
}
table_ptr->add_wal(wal_id, wal);
#ifndef BE_TEST
- RETURN_IF_ERROR(update_wal_dir_limit(_get_base_wal_path(wal)));
- RETURN_IF_ERROR(update_wal_dir_used(_get_base_wal_path(wal)));
+ WARN_IF_ERROR(update_wal_dir_limit(_get_base_wal_path(wal)),
+ "Failed to update wal dir limit while add recover wal!");
+ WARN_IF_ERROR(update_wal_dir_used(_get_base_wal_path(wal)),
+ "Failed to update wal dir used while add recove wal!");
#endif
return Status::OK();
}
diff --git a/be/src/runtime/exec_env_init.cpp b/be/src/runtime/exec_env_init.cpp
index a3269e9d339..9f1010083e4 100644
--- a/be/src/runtime/exec_env_init.cpp
+++ b/be/src/runtime/exec_env_init.cpp
@@ -261,7 +261,7 @@ Status ExecEnv::_init(const std::vector<StorePath>&
store_paths,
_storage_engine = new StorageEngine(options);
auto st = _storage_engine->open();
if (!st.ok()) {
- LOG(ERROR) << "Lail to open StorageEngine, res=" << st;
+ LOG(ERROR) << "Fail to open StorageEngine, res=" << st;
return st;
}
_storage_engine->set_heartbeat_flags(this->heartbeat_flags());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]