Skip to content

Commit

Permalink
Retain original timeout behavior for compact (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnyi authored Nov 13, 2024
2 parents a1505de + 996b428 commit 1fb26ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/thanos/compact.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,10 @@ func runCompact(
api.SetLoaded(blocks, err)
})

var syncMetasTimeout = conf.waitInterval
// Still use blockViewerSyncBlockTimeout to retain original behavior before this upstream change:
// https://github.com/databricks/thanos/commit/ab43b2b20cb42eca2668824a4084307216c6da2e#diff-6c2257b871fd1196514f664bc7e44cb21681215e0929710d0ad5ceea90b8e122R294
// Otherwise Azure won't work due to its high latency
var syncMetasTimeout = conf.blockViewerSyncBlockTimeout
if !conf.wait {
syncMetasTimeout = 0
}
Expand Down

0 comments on commit 1fb26ed

Please sign in to comment.