Skip to content

logictest: check for nil SystemConfig before purging zone config cache#90802

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
msirek:88398
Oct 27, 2022
Merged

logictest: check for nil SystemConfig before purging zone config cache#90802
craig[bot] merged 1 commit intocockroachdb:masterfrom
msirek:88398

Conversation

@msirek
Copy link
Copy Markdown
Contributor

@msirek msirek commented Oct 27, 2022

Fixes #88398

This fixes a panic which can occur duing cluster startup in a logic test or during retry of a test case in a logic test when an attempt is made to purge the zone config cache and no SystemConfig is available.

Release note: None

Fixes cockroachdb#88398

This fixes a panic which can occur duing cluster startup in a logic test
or during retry of a test case in a logic test when an attempt is made
to purge the zone config cache and no SystemConfig is available.

Release note: None
@msirek msirek requested review from a team, cucaroach and yuzefovich October 27, 2022 20:42
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

:lgtm:

We should also probably backport this to 22.2 (and maybe 22.2.0).

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @cucaroach)

Copy link
Copy Markdown
Contributor Author

@msirek msirek left a comment

Choose a reason for hiding this comment

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

We should also probably backport this to 22.2 (and maybe 22.2.0).

The root cause, #87391, is not in those releases AFAICT, so no need to backport.

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

@yuzefovich
Copy link
Copy Markdown
Member

I see. There is also #89419 which seems like a dup of this PR.

@msirek
Copy link
Copy Markdown
Contributor Author

msirek commented Oct 27, 2022

Thanks, made a note in that PR.

Copy link
Copy Markdown
Contributor Author

@msirek msirek left a comment

Choose a reason for hiding this comment

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

TFTR!
bors r=yuzefovich

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

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Oct 27, 2022

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

Development

Successfully merging this pull request may close these issues.

sql: logic test can throw nil-pointer

3 participants