[Bugfix] TSDB index bucket calculation (#7178)
[Bugfix] TSDB index bucket calculation (#7178)

When calculating the index buckets a chunk belongs to, we shouldn't
error when a bucket falls outside the current TSDB store's periodConfig
range. This can happen when a chunk is written across the bounds between
a previous index type (i.e. boltdb-shipper) and a new tsdb type or vice
versa. Instead of erroring when this happens, we'll now correctly return
only the buckets matching the TSDB store (the other buckets are handled
by their respective stores).

I think we can also remove the error from this function signature,
although I left it in as it's conceivably helpful in the case of a chunk
range that doesn't overlap at all with the store (which shouldn't
happen).


Dependent on https://github.com/grafana/loki/pull/7177
grafana/loki,grafana/loki,grafana/loki,grafana/loki,grafana/loki,grafana/loki