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 152c586b13d [improve](disk) Not add disk path to broken list if check
status is not IO_ERROR (#34111)
152c586b13d is described below
commit 152c586b13de34e8f842780e5239e17de25e74ec
Author: zxealous <[email protected]>
AuthorDate: Thu Apr 25 21:32:16 2024 +0800
[improve](disk) Not add disk path to broken list if check status is not
IO_ERROR (#34111)
---
be/src/olap/data_dir.cpp | 2 +-
be/src/service/doris_main.cpp | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/olap/data_dir.cpp b/be/src/olap/data_dir.cpp
index d1b5185b789..da7302ef605 100644
--- a/be/src/olap/data_dir.cpp
+++ b/be/src/olap/data_dir.cpp
@@ -231,7 +231,7 @@ void DataDir::health_check() {
// check disk
if (_is_used) {
Status res = _read_and_write_test_file();
- if (!res) {
+ if (!res && res.is<IO_ERROR>()) {
LOG(WARNING) << "store read/write test file occur IO Error. path="
<< _path
<< ", err: " << res;
_engine.add_broken_path(_path);
diff --git a/be/src/service/doris_main.cpp b/be/src/service/doris_main.cpp
index 731e09c6be9..98712a8168b 100644
--- a/be/src/service/doris_main.cpp
+++ b/be/src/service/doris_main.cpp
@@ -439,6 +439,7 @@ int main(int argc, char** argv) {
it = paths.erase(it);
} else {
LOG(ERROR) << "read write test file failed, path=" << it->path;
+ // if only one disk and the disk is full, also need exit
because rocksdb will open failed
exit(-1);
}
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]