Open
Description
Story Form
As a Block Node Developer/User
I want to have a properly working deletion logic that will remove stored blocks from the recents managed root
So that I have reliable recents deletion logic
Technical Notes
- with the current implementation of the
Files Recent
Plugin (this issue was created when main was at 5a9f557), the logic that will persist new blocks and the logic that will cleanup old blocks might conflict - both of these are called async on separate threads
- the deletion logic will recursively delete directories (parents) up to the root of the recents
- but the logic that will persist new blocks relies on the directories that the deletion logic may have deleted
- if the create directories of the persist logic is executed prior to the deletion logic, exceptions are expected
- we should improve this logic so that we will not see such issues
- see
org.hiero.block.node.blocks.files.recent.BlocksFilesRecentPlugin#handleVerification
andorg.hiero.block.node.blocks.files.recent.BlocksFilesRecentPlugin#handlePersisted