Bug #20203
closedAPI server returns 200 OK when it can't cache a document
Description
If the filesystem underlying the API server's cache is full, it can get into a situation where requests for cached documents return a 200 OK with an empty response.
#20187 is meant to help mitigate this for the discovery document. We should investigate if there are other routes where this can happen, and if possible, return an error code in those cases.
Investigate other uses of the rails cache and see if they are needed any more. Also investigate if we should switch over to a memory cache so it doesn't rely on disk.
Updated by Brett Smith almost 2 years ago
- Related to Idea #20187: Cache discovery doc in memory in controller added
Updated by Peter Amstutz over 1 year ago
- Story points set to 1.0
- Description updated (diff)
Updated by Peter Amstutz over 1 year ago
- Target version changed from Future to To be scheduled
Updated by Peter Amstutz over 1 year ago
- Target version changed from To be scheduled to Development 2023-04-26 sprint
Updated by Tom Clegg over 1 year ago
20203-rails-cache @ 313c0242e956ee4d97cfc9c7080daeaf42475164 -- developer-run-tests: #3600
The only rails cache usage I could found was- audit logs cleanup task, #20192
- resetting CurrentApiClient globals (system_user etc) during database#reset
I'm pretty sure the CurrentApiClient code was not working correctly -- database#reset would cause one thread to reset its globals, but not other threads.
I rearranged it so- when not in test mode, it doesn't call any Rails.cache methods at all
- when in test mode, it still uses the rails cache, but now database#reset resets globals in all threads
This could conceivably fix some flaky behavior in other test suites that use the database reset feature (ahem, wb1?).
Updated by Brett Smith over 1 year ago
Tom Clegg wrote in #note-8:
20203-rails-cache @ 313c0242e956ee4d97cfc9c7080daeaf42475164 -- developer-run-tests: #3600
This is good to merge, thanks.
Updated by Tom Clegg over 1 year ago
- Status changed from In Progress to Resolved
Applied in changeset arvados|deb01192f78dfe9875c7297a7e57a926086bee47.