From d598ee889036f2ac8b99f6470e2005342e13793b Mon Sep 17 00:00:00 2001 From: D-Justin-Dsouza Date: Tue, 21 Oct 2025 14:54:59 +0530 Subject: [PATCH] docs: explain why MaxRetries is disabled for ClusterClient --- osscluster.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osscluster.go b/osscluster.go index f32d906389..7925d2c603 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