Skip to content

Commit

Permalink
switch on the idempotent flag for retries
Browse files Browse the repository at this point in the history
  • Loading branch information
zinal committed Nov 19, 2024
1 parent 18882c5 commit 62ed6d6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ public YdbConnector(String catalogName, Map<String, String> props) {
.sessionPoolSize(1, poolSize)
.build();
this.schemeClient = SchemeClient.newClient(gt).build();
this.retryCtx = SessionRetryContext.create(tableClient).build();
this.retryCtx = SessionRetryContext.create(tableClient)
.idempotent(true)
.maxRetries(20)
.build();
this.transport = gt;
gt = null; // to avoid closing below
} finally {
Expand Down

0 comments on commit 62ed6d6

Please sign in to comment.