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

roachtest: run follower-reads/mixed-version on insecure mode #119143

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

DarrylWong
Copy link
Contributor

@DarrylWong DarrylWong commented Feb 13, 2024

Due to a new field added in 23.1, authentication will fail if the cluster is migrating from 22.2 to 23.1. We disable secure mode to avoid this issue all together.

This change also adds a check in RoachtestHTTPClient to only add cookies if the cluster is running in secure mode. This is so we can use the same HTTP Client for both mixed-version and non mixed-version follower-reads tests.

Release note: none
Epic: none
Fixes: #119064

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@DarrylWong DarrylWong force-pushed the insecure-follower-reads branch 3 times, most recently from c28c155 to a7d379c Compare February 13, 2024 19:48
@DarrylWong
Copy link
Contributor Author

Ran follower-reads/mixed-version with COCKROACH_RANDOM_SEED=2696205225849075372, a seed that currently fails on master, and confirmed it passes now.

Also ran follower-reads/survival=region to confirm changing the url prefix to http didn't break anything.

Due to a new field added in 23.1, authentication will fail
if the cluster is migrating from 22.2 to 23.1. We disable
secure mode for these test to avoid this issue all together.

This change also adds a check in RoachtestHTTPClient to only
add cookies if the cluster is running in secure mode. This is
so we can use the same HTTP Client for both mixed-version and
non mixed-version follower-reads tests.

Release note: none
@DarrylWong DarrylWong force-pushed the insecure-follower-reads branch from a7d379c to d708f53 Compare February 13, 2024 20:36
@DarrylWong DarrylWong marked this pull request as ready for review February 13, 2024 21:13
@DarrylWong DarrylWong requested a review from a team as a code owner February 13, 2024 21:13
@DarrylWong DarrylWong requested review from herkolategan and srosenberg and removed request for a team February 13, 2024 21:13
@DarrylWong
Copy link
Contributor Author

TFTR!

bors r=renatolabs

@craig
Copy link
Contributor

craig bot commented Feb 14, 2024

Build succeeded:

@craig craig bot merged commit 9a135e5 into cockroachdb:master Feb 14, 2024
16 checks passed
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: follower-reads/mixed-version/single-region failed
3 participants