Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(localstore): remove pullIndex on caching #3447

Merged
merged 1 commit into from Oct 25, 2022
Merged

Conversation

aloknerurkar
Copy link
Contributor

@aloknerurkar aloknerurkar commented Oct 21, 2022

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Currently, the localstore indexes are not reliable to be used for logical components like the reserve, cache etc. This is a known issue and there is a storage rewrite in progress to handle that.

For the current release, in order to test storage incentives, we will change the behaviour to delete the pullIndex when a chunk is put into the gcIndex. This is because, the pullIndex is now used to create the reserve sample. The cache chunks should not be present here.


This change is Reviewable

@ldeffenb
Copy link
Collaborator

This won't solve expired-stamp pinned chunks being present in the pull-index since they're not going into the gc because of the pin.

@aloknerurkar
Copy link
Contributor Author

This won't solve expired-stamp pinned chunks being present in the pull-index since they're not going into the gc because of the pin.

Yes unfortunately. As you know already the pinning is tightly tied to the other features at the moment. The storage rewrite will definitely address this problem. But for the short term, this will help others who are not using the pinning as much.

@aloknerurkar aloknerurkar merged commit ff6217d into master Oct 25, 2022
@aloknerurkar aloknerurkar deleted the reserveFix branch October 25, 2022 11:31
@aloknerurkar aloknerurkar added this to the 1.10.0 milestone Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants