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 9ea7a2ef1e6 (cloud-merge) Fix nullptr bacause don't init tablet
(#34138)
9ea7a2ef1e6 is described below
commit 9ea7a2ef1e60a39fe08dde6e61062b251bb470eb
Author: Lightman <[email protected]>
AuthorDate: Fri Apr 26 21:28:34 2024 +0800
(cloud-merge) Fix nullptr bacause don't init tablet (#34138)
---
be/src/io/cache/block_file_cache_downloader.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/be/src/io/cache/block_file_cache_downloader.cpp
b/be/src/io/cache/block_file_cache_downloader.cpp
index 283605f23be..f5a68f46d8f 100644
--- a/be/src/io/cache/block_file_cache_downloader.cpp
+++ b/be/src/io/cache/block_file_cache_downloader.cpp
@@ -316,12 +316,12 @@ void
FileCacheBlockS3Downloader::download_file_cache_block(std::vector<FileCache
}
}
};
- CloudTabletSPtr tablet;
auto res = _engine.tablet_mgr().get_tablet(meta.tablet_id(), false);
if (!res.has_value()) {
LOG_WARNING("Failed to find tablet {}",
meta.tablet_id()).error(res.error());
+ return;
}
- auto id_to_rowset_meta_map =
tablet->tablet_meta()->snapshot_rs_metas();
+ auto id_to_rowset_meta_map =
res.value()->tablet_meta()->snapshot_rs_metas();
if (auto iter = id_to_rowset_meta_map.find(meta.rowset_id());
iter != id_to_rowset_meta_map.end()) {
UInt128Wrapper cache_key = BlockFileCache::hash(meta.file_name());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]