Closed craigfurman closed 3 years ago
I'm wondering if this is something wrong in storeShards then. The idea is, that if an object is passed to bucketCache it has to have a type field.
Hm. I cannot see anything particularly wrong in the storeShard. I guess I'll go ahead with this to unblock you. Thanks!
Changes
store: fix error when bucket cache not used
The default bucketCache is
{}
, which caused a runtime error when trying to access thetype
field.I only encountered this error when using
thanos.storeShards()
, not when usingthanos.store()
. I am not sure why this is, the code looks as though it should produce this error instore()
too, ifconfig.bucketCache
is unset (and defaults to{}
).It looks like https://github.com/thanos-io/kube-thanos/pull/171 fixed a similar problem with query-frontend cache config.
Verification
I've tested this locally (in k3d) with no explicit
config.bucketCache
, and one withtype: memcached
.