Skip to content

Revert "kv: remove EndTxn.CanCommitAtHigherTimestamp flag"#53220

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
nvb:nvanbenschoten/revertCanForwardReadTimestamp
Aug 22, 2020
Merged

Revert "kv: remove EndTxn.CanCommitAtHigherTimestamp flag"#53220
craig[bot] merged 2 commits intocockroachdb:masterfrom
nvb:nvanbenschoten/revertCanForwardReadTimestamp

Conversation

@nvb
Copy link
Copy Markdown
Contributor

@nvb nvb commented Aug 21, 2020

Fixes #53198.

This (partially) reverts commit 93d5eb9.

In #53198, we saw that v20.1 nodes still rely on v20.1 nodes properly
setting this flag. That means that we can't remove it yet. Instead,
all we can do is stop consulting it on the server so that we can
remove it in v21.1.

Fixes cockroachdb#53198.

This reverts commit 93d5eb9.

In cockroachdb#53198, we saw that v20.1 nodes still rely on v20.1 nodes properly
setting this flag. That means that we can't remove it yet. Instead,
all we can do is stop consulting it on the server so that we can
remove it in v21.1.
@nvb nvb requested a review from andreimatei August 21, 2020 18:08
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @andreimatei and @nvanbenschoten)


pkg/roachpb/api.proto, line 668 at r1 (raw file):

  // TODO(nvanbenschoten): remove this in favor of can_forward_read_timestamp
  // in v21.1.
  bool can_commit_at_higher_timestamp = 8;

say that this flag is not read in 20.2 and name it deprecated_... ?

Copy link
Copy Markdown
Contributor Author

@nvb nvb left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @andreimatei)


pkg/roachpb/api.proto, line 668 at r1 (raw file):

Previously, andreimatei (Andrei Matei) wrote…

say that this flag is not read in 20.2 and name it deprecated_... ?

Done.

@nvb
Copy link
Copy Markdown
Contributor Author

nvb commented Aug 21, 2020

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 22, 2020

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 22, 2020

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 22, 2020

Build succeeded:

@craig craig bot merged commit 5d1428a into cockroachdb:master Aug 22, 2020
@nvb nvb deleted the nvanbenschoten/revertCanForwardReadTimestamp branch August 22, 2020 03:24
nvb added a commit to nvb/cockroach that referenced this pull request Aug 22, 2020
Fixes cockroachdb#53249.

The race was caused by the reintroduction of DeprecatedCanCommitAtHigherTimestamp
in cockroachdb#53220, mixed with the new splitEndTxnAndRetrySend logic introduced in cockroachdb#52885.
craig bot pushed a commit that referenced this pull request Aug 22, 2020
53275: kv: avoid race in txnSpanRefresher.SendLocked r=nvanbenschoten a=nvanbenschoten

Fixes #53249.

The race was caused by the reintroduction of DeprecatedCanCommitAtHigherTimestamp
in #53220, mixed with the new splitEndTxnAndRetrySend logic introduced in #52885.

Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
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.

roachtest: acceptance/version-upgrade failed

3 participants