lbryio / lbry-sdk

The LBRY SDK for building decentralized, censorship resistant, monetized, digital content apps.
https://lbry.com
MIT License
7.19k stars 484 forks source link

`content_blobs_storage_used_mb` seems to include "pending" + "finished" blobs. (Making it not to match the actual disk-usage) #3617

Closed keikari closed 2 years ago

keikari commented 2 years ago

To repro:

  1. Have save_file disabled
  2. Check "content_blobs_storage_used_mb": in status, and the real disk-usage of blobs
  3. Run lbrynet get 'lbry://@a#f1/ubuntu-test#e'
  4. Run lbrynet blob clean to update the blob storage usage numbers in lbrynet status
  5. Check "content_blobs_storage_used_mb": again, and the real disk-usage of blobs
  6. The "content_blobs_storage_used_mb": instantly increased by ~2,8GB, but real disk_usage only increased the size of the sd_blob
shyba commented 2 years ago

Thank you very much for this clear reproduction! I was able to reproduce the issue. Opening a PR