From 56cb90831d2a08518a7070f5fdc59609b61a98fc Mon Sep 17 00:00:00 2001 From: zwang28 <84491488@qq.com> Date: Thu, 12 Sep 2024 16:45:01 +0800 Subject: [PATCH] fixup --- src/storage/src/hummock/store/hummock_storage.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/storage/src/hummock/store/hummock_storage.rs b/src/storage/src/hummock/store/hummock_storage.rs index b3379efa38301..e8df8221756a7 100644 --- a/src/storage/src/hummock/store/hummock_storage.rs +++ b/src/storage/src/hummock/store/hummock_storage.rs @@ -406,6 +406,11 @@ impl HummockStorage { let ret = if let Some(info) = info && epoch <= info.committed_epoch { + if epoch < info.committed_epoch { + return Err( + HummockError::expired_epoch(table_id, info.committed_epoch, epoch).into(), + ); + } // read committed_version directly without build snapshot get_committed_read_version_tuple(pinned_version, table_id, key_range, epoch) } else {