aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/swift.js
diff options
context:
space:
mode:
authorAustin Morton <austinpmorton@gmail.com>2019-08-23 09:44:20 -0400
committerAustin Morton <austinpmorton@gmail.com>2019-08-23 09:44:20 -0400
commit12380a4a954ad80465ca69fe5f7f9b3d88e70d48 (patch)
tree158df864987100222d52149f18f5d1aaad3107a5 /lib/compilers/swift.js
parentaa0165ee66f497ec9d179bbda5875f80aecd4873 (diff)
downloadcompiler-explorer-12380a4a954ad80465ca69fe5f7f9b3d88e70d48.tar.gz
compiler-explorer-12380a4a954ad80465ca69fe5f7f9b3d88e70d48.zip
Gracefully handle IO errors in disk cache
There appears to be a race condition between key eviction and access. It is possible for the file to be deleted from disk, but the key to still be in the cache momentarily. If someone tries to access the key during this period a file not found error will be thrown, and odd behavior may occur in the caller. Instead, we catch/log errors and return a cache miss.
Diffstat (limited to 'lib/compilers/swift.js')
0 files changed, 0 insertions, 0 deletions