[Bugfix] Fix ARC touch KeyError for non-ready T1 blocks in kv offload (#34576)

Signed-off-by: Yiqi Xue <xuey666@gmail.com>
This commit is contained in:
Yiqi Xue
2026-02-16 07:33:19 -08:00
committed by GitHub
parent ec7d9e6745
commit bc56a1d56e

View File

@@ -90,7 +90,8 @@ class ARCOffloadingManager(OffloadingManager):
block = self.t1.pop(block_hash)
if not block.is_ready:
# block was just prepared to be stored, not really touched twice
self.t1.move_to_end(block_hash)
# keep it in T1 and mark as most recently used
self.t1[block_hash] = block
else:
self.t2[block_hash] = block