Skip to content

kv: disable timestamp cache + current clock assertion#61130

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/disableTSCacheAssert
Feb 26, 2021
Merged

kv: disable timestamp cache + current clock assertion#61130
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/disableTSCacheAssert

Conversation

@nvb
Copy link
Copy Markdown
Contributor

@nvb nvb commented Feb 25, 2021

Closes #60580.
Closes #60736.
Closes #60779.
Closes #61060.

This was added in 218a5a3. The check was more of a sanity check that we have and
always have had an understand of the timestamps that can enter the timestamp
cache. The fact that it's failing is a clear indication that there were issues
in past releases, because a lease transfer used to only be safe if the outgoing
leaseholder's clock was above the time of any read in its timestamp cache. We
now ship a snapshot of the timestamp cache on lease transfers, so that invariant
is less important.

I'd still like to get to the bottom of this, but I'll do so on my own branch,
off of master where it's causing disruption.

Release justification: avoid assertion failures

@nvb nvb requested review from aayushshah15 and tbg February 25, 2021 17:53
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@aayushshah15 aayushshah15 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! 1 of 0 LGTMs obtained (waiting on @tbg)

@aayushshah15
Copy link
Copy Markdown
Contributor

The PR should be unblocked once #61125 lands.

Closes cockroachdb#60580.
Closes cockroachdb#60736.
Closes cockroachdb#60779.
Closes cockroachdb#61060.

This was added in 218a5a3. The check was more of a sanity check that we have and
always have had an understand of the timestamps that can enter the timestamp
cache. The fact that it's failing is a clear indication that there were issues
in past releases, because a lease transfer used to only be safe if the outgoing
leaseholder's clock was above the time of any read in its timestamp cache. We
now ship a snapshot of the timestamp cache on lease transfers, so that invariant
is less important.

I'd still like to get to the bottom of this, but I'll do so on my own branch,
off of master where it's causing disruption.

Release justification: avoid assertion failures
@nvb nvb force-pushed the nvanbenschoten/disableTSCacheAssert branch from e34a53e to 54f29fe Compare February 25, 2021 20:00
@nvb
Copy link
Copy Markdown
Contributor Author

nvb commented Feb 25, 2021

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Feb 25, 2021

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Feb 26, 2021

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants