This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 35630b5f18a [fix](nullfs) fs is null when a resource is deleted for 
cooldown (#36140)
35630b5f18a is described below

commit 35630b5f18a649efe9331c8e0943ee1bded5d3b0
Author: Yongqiang YANG <[email protected]>
AuthorDate: Tue Jun 11 22:03:26 2024 +0800

    [fix](nullfs) fs is null when a resource is deleted for cooldown (#36140)
---
 be/src/olap/rowset/beta_rowset.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/rowset/beta_rowset.cpp 
b/be/src/olap/rowset/beta_rowset.cpp
index 6aea5d3d98b..10d7f326a58 100644
--- a/be/src/olap/rowset/beta_rowset.cpp
+++ b/be/src/olap/rowset/beta_rowset.cpp
@@ -494,7 +494,7 @@ void BetaRowset::clear_cache() {
     clear_inverted_index_cache();
 
     auto fs = _rowset_meta->fs();
-    for (int i = 0; i < num_segments(); ++i) {
+    for (int i = 0; i < num_segments() && fs != nullptr; ++i) {
         auto seg_path = segment_file_path(i);
         if (fs->type() != io::FileSystemType::LOCAL) {
             auto cache_path = segment_cache_path(i);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to