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 14f8f0cae0 [Improvement](errorcode) use error code when disk exceed
capacity limit (#24136)
14f8f0cae0 is described below
commit 14f8f0cae0dd0a73062a11053c5d92f3f942608e
Author: HHoflittlefish777 <[email protected]>
AuthorDate: Sun Sep 10 16:32:17 2023 +0800
[Improvement](errorcode) use error code when disk exceed capacity limit
(#24136)
---
be/src/olap/rowset/segment_v2/segment_writer.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/olap/rowset/segment_v2/segment_writer.cpp
b/be/src/olap/rowset/segment_v2/segment_writer.cpp
index 639e2ec081..775d9b5a8a 100644
--- a/be/src/olap/rowset/segment_v2/segment_writer.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_writer.cpp
@@ -917,7 +917,8 @@ Status SegmentWriter::finalize(uint64_t* segment_file_size,
uint64_t* index_size
timer.start();
// check disk capacity
if (_data_dir != nullptr &&
_data_dir->reach_capacity_limit((int64_t)estimate_segment_size())) {
- return Status::InternalError("disk {} exceed capacity limit.",
_data_dir->path_hash());
+ return Status::Error<DISK_REACH_CAPACITY_LIMIT>("disk {} exceed
capacity limit.",
+
_data_dir->path_hash());
}
// write data
RETURN_IF_ERROR(finalize_columns_data());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]