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

kv/reports: don't panic on missing default zone config #117662

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

nvanbenschoten
Copy link
Member

Informs #43951.

In #43951, we saw that some random sequence on queries led to the default zone configuration in the system.zones table (key /Table/5/1/0/2/1) being deleted. This led to a fatal log in the replication report generation code.

Deleting this key should not be allowed, but it also shouldn't crash cockroach. This commit replaces the fatal log with an error, which is logged a few stack frames up with a gentle "some reports have not been generated" message.

I've confirmed that with this fix, the reproduction steps in #43951 no longer lead to a fatal log and a crashed process.

Release note: None

Informs cockroachdb#43951.

In cockroachdb#43951, we saw that some random sequence on queries led to the default zone
configuration in the system.zones table (key `/Table/5/1/0/2/1`) being deleted.
This led to a fatal log in the replication report generation code.

Deleting this key should not be allowed, but it also shouldn't crash cockroach.
This commit replaces the fatal log with an error, which is logged a few stack
frames up with a gentle "some reports have not been generated" message.

I've confirmed that with this fix, the reproduction steps in cockroachdb#43951 no longer
lead to a fatal log and a crashed process.

Release note: None
@nvanbenschoten nvanbenschoten requested a review from a team as a code owner January 11, 2024 05:23
Copy link

blathers-crl bot commented Jan 11, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nvanbenschoten
Copy link
Member Author

TFTR!

bors r+

@craig craig bot merged commit d424c50 into cockroachdb:master Jan 11, 2024
9 checks passed
@craig
Copy link
Contributor

craig bot commented Jan 11, 2024

Build succeeded:

@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/fix43951 branch January 18, 2024 23:15
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.

None yet

3 participants