From 8ca7979664a7f4d4c67d5a60af4d076eabd151e8 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 21 Oct 2025 17:33:58 +0530 Subject: [PATCH] chore(docs): explain why MaxRetries is disabled for ClusterClient (#3551) Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com> --- osscluster.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osscluster.go b/osscluster.go index f32d9063..7925d2c6 100644 --- a/osscluster.go +++ b/osscluster.go @@ -77,6 +77,10 @@ type ClusterOptions struct { CredentialsProviderContext func(ctx context.Context) (username string, password string, err error) StreamingCredentialsProvider auth.StreamingCredentialsProvider + // MaxRetries is the maximum number of retries before giving up. + // For ClusterClient, retries are disabled by default (set to -1), + // because the cluster client handles all kinds of retries internally. + // This is intentional and differs from the standalone Options default. MaxRetries int MinRetryBackoff time.Duration MaxRetryBackoff time.Duration