@@ -45,7 +45,7 @@ func (c *Client) CreateNode(ctx context.Context, path string, config coordinatio
4545 if ! c .config .AutoRetry () {
4646 return call (ctx )
4747 }
48- return retry .Retry (ctx , call , retry .WithStackTrace ())
48+ return retry .Retry (ctx , call , retry .WithStackTrace (), retry . WithIdempotent ( true ) )
4949}
5050
5151func (c * Client ) createNode (ctx context.Context , path string , config coordination.NodeConfig ) (err error ) {
@@ -82,7 +82,7 @@ func (c *Client) AlterNode(ctx context.Context, path string, config coordination
8282 if ! c .config .AutoRetry () {
8383 return call (ctx )
8484 }
85- return retry .Retry (ctx , call , retry .WithStackTrace ())
85+ return retry .Retry (ctx , call , retry .WithStackTrace (), retry . WithIdempotent ( true ) )
8686}
8787
8888func (c * Client ) alterNode (ctx context.Context , path string , config coordination.NodeConfig ) (err error ) {
@@ -119,7 +119,7 @@ func (c *Client) DropNode(ctx context.Context, path string) (err error) {
119119 if ! c .config .AutoRetry () {
120120 return call (ctx )
121121 }
122- return retry .Retry (ctx , call , retry .WithStackTrace ())
122+ return retry .Retry (ctx , call , retry .WithStackTrace (), retry . WithIdempotent ( true ) )
123123}
124124
125125func (c * Client ) dropNode (ctx context.Context , path string ) (err error ) {
@@ -158,7 +158,7 @@ func (c *Client) DescribeNode(
158158 err = call (ctx )
159159 return
160160 }
161- err = retry .Retry (ctx , call , retry .WithStackTrace ())
161+ err = retry .Retry (ctx , call , retry .WithStackTrace (), retry . WithIdempotent ( true ) )
162162 return
163163}
164164
0 commit comments