Skip to content

kv: specify + test behavior of NegotiateAndSend with paginated reads#69481

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/testBoundedStalenessResume
Aug 30, 2021
Merged

kv: specify + test behavior of NegotiateAndSend with paginated reads#69481
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/testBoundedStalenessResume

Conversation

@nvb
Copy link
Copy Markdown
Contributor

@nvb nvb commented Aug 27, 2021

Fixes #69386.

In #69350, we began relying on the previously unspecified behavior of
Txn.NegotiateAndSend that negotiation was completed across all read
spans in a request, even if the request itself was paginated. This
commit clarifies this contract. It also adds client and server-side
tests that exercise the behavior.

Release justification: added testing for new functionality

@nvb nvb requested review from a team and otan August 27, 2021 18:09
@nvb nvb requested a review from a team as a code owner August 27, 2021 18:09
@nvb nvb requested a review from a team August 27, 2021 18:09
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Fixes cockroachdb#69386.

In cockroachdb#69350, we began relying on the previously unspecified behavior of
Txn.NegotiateAndSend that negotiation was completed across all read
spans in a request, even if the request itself was paginated. This
commit clarifies this contract. It also adds client and server-side
tests that exercise the behavior.

Release justification: added testing for new functionality
@nvb nvb force-pushed the nvanbenschoten/testBoundedStalenessResume branch from 8790eb0 to 84ce692 Compare August 29, 2021 22:26
@nvb
Copy link
Copy Markdown
Contributor Author

nvb commented Aug 29, 2021

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 30, 2021

Build succeeded:

@craig craig bot merged commit 6f1e7e8 into cockroachdb:master Aug 30, 2021
@nvb nvb deleted the nvanbenschoten/testBoundedStalenessResume branch September 7, 2021 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

txn_external_test: add test for bounded staleness reads negotiates and fixes the txn timestamp on resume

3 participants