From 3547fe94376e2579bf28052dbbf05db55696be8f Mon Sep 17 00:00:00 2001 From: Georgi Petrov <32372905+G-D-Petrov@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:29:26 +0300 Subject: [PATCH] Revert "Handle KeyNotFoundException in recurse_index_key" (#1776) Reverts man-group/ArcticDB#1766 --- cpp/arcticdb/util/key_utils.hpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/cpp/arcticdb/util/key_utils.hpp b/cpp/arcticdb/util/key_utils.hpp index 2fe7217a4c..a051d9ef0d 100644 --- a/cpp/arcticdb/util/key_utils.hpp +++ b/cpp/arcticdb/util/key_utils.hpp @@ -117,16 +117,10 @@ ankerl::unordered_dense::set recurse_segment(const std::shared_ptr recurse_index_key(const std::shared_ptr& store, const IndexTypeKey& index_key, const std::optional& version_id=std::nullopt) { - ankerl::unordered_dense::set res; - try { - auto segment = store->read_sync(index_key).second; - res = recurse_segment(store, segment, version_id); - res.emplace(index_key); - return res; - } catch (const storage::KeyNotFoundException& e) { - log::storage().debug("Key {} not found in store: {}", index_key, e.what()); - return res; - } + auto segment = store->read_sync(index_key).second; + auto res = recurse_segment(store, segment, version_id); + res.emplace(index_key); + return res; } inline ankerl::unordered_dense::set recurse_segment(const std::shared_ptr& store,