Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-21.1: roachtest/follower-reads: adopt multi-region abstractions, add GLOBAL tables #62965

Conversation

nvanbenschoten
Copy link
Member

Backport:

Please see individual PRs for details.

Closes #62854.

/cc @cockroachdb/release

… tables

Fixes cockroachdb#59678.

This commit expands the existing `follower-reads` roachtest into four variants:
- follower-reads/survival=region/locality=global
- follower-reads/survival=region/locality=regional
- follower-reads/survival=zone/locality=global
- follower-reads/survival=zone/locality=regional

As the names indicate, these four variants are adapted to use the [new
multi-region abstractions](https://www.cockroachlabs.com/docs/v21.1/multiregion-overview.html).
Specifically, two of the variants configure the test database with a
REGION survival goal while two of the variants configure the test
database with a ZONE survival goal. The ZONE variant give us testing
coverage for serving follower reads off of non-voting replicas, because
only the primary region of the database will house voting replicas.

The use of multi-region abstractions also extends to table locality
settings. Two of the variants configure the table with a REGIONAL
locality setting. This necessitates the use of stale reads to read from
followers, as the test had been doing before. However, the other two
variants configure the table with a GLOBAL locality setting. Because
GLOBAL tables can serve non-stale reads from followers, the test can
omit the `AS OF SYSTEM TIME follower_read_timestamp()` clause in these
variants and test that GLOBAL tables provide low-latency consistent
reads from all regions.

Release note: None
Release justification: testing only
Fixes cockroachdb#62240.
Fixes cockroachdb#62196.
Fixes cockroachdb#62067.
Fixes cockroachdb#62065.

Range splits after a table creation are async, so don't expect one immediately.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nvanbenschoten nvanbenschoten merged commit 9ee2e4f into cockroachdb:release-21.1 Apr 1, 2021
@nvanbenschoten nvanbenschoten deleted the backport21.1-61836-62411 branch April 1, 2021 19:38
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.

3 participants