Skip to content

storage: also repair on find_index calls#3319

Merged
syphar merged 1 commit intorust-lang:mainfrom
syphar:retry-find-index
May 3, 2026
Merged

storage: also repair on find_index calls#3319
syphar merged 1 commit intorust-lang:mainfrom
syphar:retry-find-index

Conversation

@syphar
Copy link
Copy Markdown
Member

@syphar syphar commented May 3, 2026

Seeing this sentry error I realized that find_index doesn't have our repair-loop.

We still have gaps in this "self-repair" thing: when an index file can be opened, but is broken in different ways, so Index.find and Index.folder_contents would fail. (the most used one, Cache.find, which wraps Index.find, has repair loops).

I don't like the current design here, and want to update it, but lacking time today I just want the current errors to be fixed.

@syphar syphar self-assigned this May 3, 2026
@syphar syphar requested a review from a team as a code owner May 3, 2026 14:29
@github-actions github-actions Bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label May 3, 2026
@syphar syphar merged commit ad302d9 into rust-lang:main May 3, 2026
14 checks passed
@github-actions github-actions Bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels May 3, 2026
@syphar syphar deleted the retry-find-index branch May 3, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants