Skip to content

Commit

Permalink
explain
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaemming committed Feb 26, 2025
1 parent bf8682e commit 32841ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions posthog/clickhouse/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ def run_on_shards(self, cluster: ClickhouseCluster, shards: Iterable[int] | None

cluster.map_all_hosts_in_shards(
{
# during periods of elevated replication lag, it may take some time for mutations to become available on
# the shards, so give them a little bit of breathing room with retries
shard_num: RetryPolicy(mutation.wait, max_attempts=3, delay=10.0, exceptions=(MutationNotFound,))
for shard_num, mutation in shard_mutations.items()
}
Expand Down

0 comments on commit 32841ca

Please sign in to comment.