diff --git a/CHANGELOG.md b/CHANGELOG.md index 0360af93f49..0daaceb80c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ * [BUGFIX] Correctly handle 429s in GRPC search streaming. [#3469](https://github.com/grafana/tempo/pull/3469) (@joe-ellitot) * [BUGFIX] Correctly cancel GRPC and HTTP contexts in the frontend to prevent having to rely on http write timeout. [#3443](https://github.com/grafana/tempo/pull/3443) (@joe-elliott) * [BUGFIX] Add spss and limit to the frontend cache key to prevent the return of incorrect results. [#3557](https://github.com/grafana/tempo/pull/3557) (@joe-elliott) +* [BUGFIX] Use os path separator to split blocks path. [#3552](https://github.com/grafana/tempo/issues/3552) (@teyyubismayil) ## v2.4.1 diff --git a/tempodb/backend/local/local.go b/tempodb/backend/local/local.go index 351bdf8eb4e..08f120cd490 100644 --- a/tempodb/backend/local/local.go +++ b/tempodb/backend/local/local.go @@ -19,9 +19,10 @@ type Backend struct { } var ( - _ backend.RawReader = (*Backend)(nil) - _ backend.RawWriter = (*Backend)(nil) - _ backend.Compactor = (*Backend)(nil) + _ backend.RawReader = (*Backend)(nil) + _ backend.RawWriter = (*Backend)(nil) + _ backend.Compactor = (*Backend)(nil) + pathSeparatorStr = string(os.PathSeparator) ) func NewBackend(cfg *Config) (*Backend, error) { @@ -161,7 +162,7 @@ func (rw *Backend) ListBlocks(_ context.Context, tenant string) (metas []uuid.UU tenantFilePath := filepath.Join(tenant, path) - parts := strings.Split(tenantFilePath, "/") + parts := strings.Split(tenantFilePath, pathSeparatorStr) // i.e: /meta if len(parts) != 3 { return nil