storj icon indicating copy to clipboard operation
storj copied to clipboard

Trash cleanup doesn't update used/free space cache

Open littleskunk opened this issue 9 months ago • 4 comments

The new lazy filewalker works great. It moves a lot of data in a short amount of time with no impact on my success rate. Thank you for all these improvements.

There is one small issue. Since the trash cleanup was modified to run the lazy filewalker as well it doesn't update the used space / free space values. So once per week the storage node will move let's say 500 GB out of 5 TB into trash and update the cache. Total space used 5 TB. One week later the node has grown another 500 GB and once again it moves 500 GB into the trash folder. Expected size: 4.5 TB used + 500 GB trash = 5 TB total. Actual size: 4.5 TB used + 1 TB trash. The cleanup job deletes the data from trash without updating the cache.

littleskunk avatar May 08 '24 13:05 littleskunk