This is an automated email from the ASF dual-hosted git repository.
jianliangqi 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 897db3cca5 [Chore](inverted index) refine log in
DorisCompoundDirectory::FSIndexOutput (#22716)
897db3cca5 is described below
commit 897db3cca521f91158b928b0326d1293a6772be8
Author: airborne12 <[email protected]>
AuthorDate: Tue Aug 8 20:32:31 2023 +0800
[Chore](inverted index) refine log in DorisCompoundDirectory::FSIndexOutput
(#22716)
---
.../olap/rowset/segment_v2/inverted_index_compound_directory.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git
a/be/src/olap/rowset/segment_v2/inverted_index_compound_directory.cpp
b/be/src/olap/rowset/segment_v2/inverted_index_compound_directory.cpp
index 4574d64abf..55d8253352 100644
--- a/be/src/olap/rowset/segment_v2/inverted_index_compound_directory.cpp
+++ b/be/src/olap/rowset/segment_v2/inverted_index_compound_directory.cpp
@@ -401,7 +401,13 @@ void
DorisCompoundDirectory::FSIndexOutput::flushBuffer(const uint8_t* b, const
LOG(WARNING) << "File IO Write error: " << st.to_string();
}
} else {
- LOG(WARNING) << "File writer is nullptr, ignore flush.";
+ if (writer == nullptr) {
+ LOG(WARNING) << "File writer is nullptr in
DorisCompoundDirectory::FSIndexOutput, "
+ "ignore flush.";
+ } else if (b == nullptr) {
+ LOG(WARNING) << "buffer is nullptr when flushBuffer in "
+ "DorisCompoundDirectory::FSIndexOutput";
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]