Setting Contile Tiles Time To Live To 0 Causes Panic
data-sync-user opened this issue · 0 comments
data-sync-user commented
Sending a request for tiles to contile when the tiles_ttl value is set to '0' results in an error.
Jul 28 20:33:33.284 WARN Source may be path or unparsable URL: "/tmp/contile/adm_settings.json" RelativeUrlWithoutBase
Jul 28 20:33:33.294 INFO Server running on http://0.0.0.0:8000
thread 'actix-rt|system:0|arbiter:0' panicked at 'cannot sample empty range', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.8.5/src/rng.rs:134:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace**Reproduction Steps**
- Run contile with environment variable CONTILE_TILES_TTL set to 0
- Send request to the /v1/tiles endpoint
Actual Behaviour*:* Error Message
curl --location --request GET 'CONTILE_URL/v1/tiles' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:10.0) Gecko/20100101 Firefox/91.0'
Expected Behaviour: contile will put entries into the cache, but they would always be considered expired.
┆Issue is synchronized with this Jira Bug
┆Epic: Contile reliability enhancements