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

mirrorbits: DB update race #8

Open
lazka opened this issue Jun 19, 2021 · 2 comments
Open

mirrorbits: DB update race #8

lazka opened this issue Jun 19, 2021 · 2 comments

Comments

@lazka
Copy link
Member

lazka commented Jun 19, 2021

Not that important hopefully, but

  • update DB
  • user gets redirected to mirror that has update
  • user gets redirected to mirror that hasn't and sees pacman downgrade warnings (which aren't fatal)

Workaround:

  • force a mirrorbits file rescan after updating the DB (happens all 5 mins anyway)
  • this will mark the DBs out of sync with all mirrors and users get redirected to the fallback (repo.msys2.org) until the next mirror update
@lazka
Copy link
Member Author

lazka commented Jun 19, 2021

A docker-compose exec mirrorbits mirrorbits refresh does not seem to help, sometimes

I somehow get the feeling that there is some extra caching on top of redis involved..

@lazka
Copy link
Member Author

lazka commented Apr 22, 2024

A docker-compose exec mirrorbits mirrorbits refresh does not seem to help, sometimes

I somehow get the feeling that there is some extra caching on top of redis involved..

This has been fixed upstream now: etix/mirrorbits#114

So the window is now max 5 minutes, which is really not that much of an issue.

I've filed etix/mirrorbits#170 upstream which would reduce it to 20 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant