codex-storage / nim-codex

Decentralized Durability Engine
58 stars 21 forks source link

[BUG] No expiry for block #745

Open benbierens opened 3 months ago

benbierens commented 3 months ago

Error message found during dist-testing:

ERR 2024-03-20 11:55:24.022+00:00 No current expiry exists for the block     topics="codex repostore" tid=1 cid=zDx*KVj93r 

Occurs when block-exchange is under load. Confirmed that this is an issue: Blocks without valid expiry data will not be cleaned up. Node quotas will eventually fill up with untracked blocks of this kind.

(Tests succeeds because no dist-test currently exists that checks block expiration behaviour.)

tbekas commented 3 months ago

I haven't looked into the issue, but if it happens due to unfortunate timing, then it will be probably fixed by this change https://github.com/codex-storage/nim-codex/pull/678