Skip to content

Conversation

@olavloite
Copy link
Collaborator

If a StreamingReadRequest that included a BeginTransaction option was retried as a result
of a transient error (UNAVAILABLE), the fact that the BeginTransaction option was included
would not be registered for the retried request. This could cause a transaction to fail if
the retried request returned an Aborted error, and that Aborted error was caught by the
application.

If a StreamingReadRequest that included a BeginTransaction option was retried as a result
of a transient error (UNAVAILABLE), the fact that the BeginTransaction option was included
would not be registered for the retried request. This could cause a transaction to fail if
the retried request returned an Aborted error, and that Aborted error was caught by the
application.
@olavloite olavloite requested a review from thiagotnunes October 5, 2021 13:26
@olavloite olavloite requested a review from a team as a code owner October 5, 2021 13:26
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/java-spanner API. label Oct 5, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 5, 2021
rpc.read(builder.build(), stream.consumer(), session.getOptions());
call.request(prefetchChunks);
stream.setCall(call, selector != null && selector.hasBegin());
stream.setCall(call, /* withBeginTransaction = */ builder.getTransaction().hasBegin());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this typo? Strange way to write an inline comment.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's not a typo. It's the closest we get to named parameters in Java. We sometimes use it for (boolean) arguments that otherwise are not obvious what they are for.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for clarification

@suztomo
Copy link
Member

suztomo commented Oct 5, 2021

I see integration test failing.

@olavloite olavloite added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 5, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 5, 2021
@olavloite
Copy link
Collaborator Author

I see integration test failing.

Seems to be unrelated. I've created a tracking issue and restarted them.

@suztomo
Copy link
Member

suztomo commented Oct 5, 2021

I see it failed again.

@olavloite
Copy link
Collaborator Author

I see it failed again.

I've increased the timeout in the specific test, and it now succeeds. The test is however completely unrelated to this change, so the test failure rather seems to be related to the backend needing more time than previously to delete a database.

@thiagotnunes thiagotnunes merged commit 6664d75 into 6.4.4-sp Oct 6, 2021
@thiagotnunes thiagotnunes deleted the remember-with-begin-transaction-for-read branch October 6, 2021 00:02
@olavloite olavloite mentioned this pull request Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/java-spanner API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants