Skip to content

Commit 1fb26ed

Browse files
authored
Retain original timeout behavior for compact (#98)
2 parents a1505de + 996b428 commit 1fb26ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/thanos/compact.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,10 @@ func runCompact(
291291
api.SetLoaded(blocks, err)
292292
})
293293

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

0 commit comments

Comments
 (0)