File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
google-cloud-spanner/src/main/java/com/google/cloud/spanner Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -305,9 +305,6 @@ public CommitResponse writeAtLeastOnceWithOptions(
305
305
try (IScope s = tracer .withSpan (span )) {
306
306
return SpannerRetryHelper .runTxWithRetriesOnAborted (
307
307
() -> {
308
- // TODO(@odeke-em): Only increment on UNAVAILABLE and INCREMENT,
309
- // instead increment the nthRequest on ABORTED and others.
310
- reqId .incrementAttempt ();
311
308
return new CommitResponse (
312
309
spanner .getRpc ().commit (request , reqId .withOptions (getOptions ())));
313
310
});
@@ -322,7 +319,7 @@ public CommitResponse writeAtLeastOnceWithOptions(
322
319
private XGoogSpannerRequestId reqIdOrFresh (Options options ) {
323
320
XGoogSpannerRequestId reqId = options .reqId ();
324
321
if (reqId == null ) {
325
- reqId = this .getRequestIdCreator ().nextRequestId (1 /* TODO: channelId */ , 0 );
322
+ reqId = this .getRequestIdCreator ().nextRequestId (1 /* TODO: channelId */ , 1 );
326
323
}
327
324
return reqId ;
328
325
}
You can’t perform that action at this time.
0 commit comments