Closed mensfeld closed 1 year ago
@mensfeld https://github.com/rubygems/rubygems.org/pull/3593 was deployed, feel free to check now.
@mensfeld and also small additional fix was deployed later https://github.com/rubygems/rubygems.org/pull/3619
Can you confirm your problem is gone?
@simi yes. After the fix and re-sync with RubyGems I do not see this happening anymore.
Creating this based on the slack thread:
https://bundler.slack.com/archives/C02F27TKQ/p1678721462408249
Upon the new gem version release, some of the notes are not flushed, or the soft flush takes a lot of time.
Expected Behavior
The cache should be purged faster or we should use hard purge for some endpoints where the traffic is not expected to be high but the data consistency may be critical to API users.
Current Behavior
This is visible if you hammer the versions API endpoint (https://rubygems.org/api/v1/versions/karafka.json) a lot. Once in a while (for me that is on average 1/100) the API response does not contain the most recent version
Age on invalid (outdated) requests is always significantly higher. For example (those are response headers):
Possible Solution