This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new 3117aaa0dd5 branch-4.1: [fix](be) remove changing segment cache blocks
to index type #65905 (#65948)
3117aaa0dd5 is described below
commit 3117aaa0dd514316224ed8372891f8424625fb74
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jul 24 09:58:02 2026 +0800
branch-4.1: [fix](be) remove changing segment cache blocks to index type
#65905 (#65948)
Cherry-picked from #65905
Co-authored-by: bobhan1 <[email protected]>
---
be/src/storage/segment/segment_writer.cpp | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/be/src/storage/segment/segment_writer.cpp
b/be/src/storage/segment/segment_writer.cpp
index 438a848c929..2be5f9564b3 100644
--- a/be/src/storage/segment/segment_writer.cpp
+++ b/be/src/storage/segment/segment_writer.cpp
@@ -1033,18 +1033,6 @@ Status SegmentWriter::finalize(uint64_t*
segment_file_size, uint64_t* index_size
LOG(INFO) << "segment flush consumes a lot time_ns " <<
timer.elapsed_time()
<< ", segmemt_size " << *segment_file_size;
}
- // When the cache type is not ttl(expiration time == 0), the data should
be split into normal cache queue
- // and index cache queue
- if (auto* cache_builder = _file_writer->cache_builder(); cache_builder !=
nullptr &&
-
cache_builder->_expiration_time == 0 &&
-
config::is_cloud_mode()) {
- auto index_start = _index_file_cache_info.cache_start_offset();
- auto size = *index_size + *segment_file_size;
- auto holder = cache_builder->allocate_cache_holder(index_start, size,
_tablet->tablet_id());
- for (auto& segment : holder->file_blocks) {
-
static_cast<void>(segment->change_cache_type(io::FileCacheType::INDEX));
- }
- }
return Status::OK();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]