This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 881670566c [fix]Fix the coredump when an IOError occurs in be (#11857)
881670566c is described below
commit 881670566c0aa577dd83af69c7b3d9f7a3986ab2
Author: zxealous <[email protected]>
AuthorDate: Thu Aug 18 09:13:41 2022 +0800
[fix]Fix the coredump when an IOError occurs in be (#11857)
---
be/src/io/fs/local_file_reader.cpp | 2 +-
be/src/io/fs/s3_file_reader.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/be/src/io/fs/local_file_reader.cpp
b/be/src/io/fs/local_file_reader.cpp
index 21c90a510f..551a3a330a 100644
--- a/be/src/io/fs/local_file_reader.cpp
+++ b/be/src/io/fs/local_file_reader.cpp
@@ -51,7 +51,7 @@ Status LocalFileReader::close() {
Status LocalFileReader::read_at(size_t offset, Slice result, size_t*
bytes_read) {
DCHECK(!closed());
if (offset > _file_size) {
- return Status::IOError("offset exceeds file size(offset: {), file
size: {}, path: {})",
+ return Status::IOError("offset exceeds file size(offset: {}, file
size: {}, path: {})",
offset, _file_size, _path.native());
}
size_t bytes_req = result.size;
diff --git a/be/src/io/fs/s3_file_reader.cpp b/be/src/io/fs/s3_file_reader.cpp
index 2f16b03db4..0c53ff3450 100644
--- a/be/src/io/fs/s3_file_reader.cpp
+++ b/be/src/io/fs/s3_file_reader.cpp
@@ -52,7 +52,7 @@ Status S3FileReader::close() {
Status S3FileReader::read_at(size_t offset, Slice result, size_t* bytes_read) {
DCHECK(!closed());
if (offset > _file_size) {
- return Status::IOError("offset exceeds file size(offset: {), file
size: {}, path: {})",
+ return Status::IOError("offset exceeds file size(offset: {}, file
size: {}, path: {})",
offset, _file_size, _path.native());
}
size_t bytes_req = result.size;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]