11917: Do not clear rails cache at boot time.
authorTom Clegg <tom@curoverse.com>
Fri, 30 Jun 2017 14:17:02 +0000 (10:17 -0400)
committerTom Clegg <tom@curoverse.com>
Fri, 30 Jun 2017 14:37:46 +0000 (10:37 -0400)
commite8d11e963248fada51bdb1ecc59446adccff440f
treeaeefc3a90ed2c4771dd6c6d279784fe6c43ac7c4
parent32c2f3d808e0d4938f6a17b778c38f6d1ecd2f82
11917: Do not clear rails cache at boot time.

This seems like a good idea when there is only one process that has
access to the cache. However, in real life the crunch1 dispatcher,
rake tasks, and the apiserver all share the cache, and they don't all
start up at the same time. This means clear() can run while other
operations like fetch() are in progress, which is apparently not a
supported use. With the Rails file cache, if clear() removes a
directory at an inopportune moment, fetch() crashes (see
https://dev.arvados.org/issues/11917).

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curoverse.com>
services/api/config/environment.rb