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,admission: only log empty admission warning for non-release builds #115705

Conversation

aadityasondhi
Copy link
Collaborator

This error message, while useful for debugging, spams the logs with a stack trace which can be distracting when reading the logs.

Since AC defaults to skip when there is an empty header, this is not a concern, unless we see real-world performance impact (which we have not).

This patch removes it from release builds while we figure out all the sources for missing headers.

Informs #112680

Release note: None

@aadityasondhi aadityasondhi requested a review from a team as a code owner December 6, 2023 16:13
Copy link

blathers-crl bot commented Dec 6, 2023

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

@aadityasondhi aadityasondhi added the backport-23.2.x Flags PRs that need to be backported to 23.2. label Dec 6, 2023
Copy link
Collaborator

@sean- sean- left a comment

Choose a reason for hiding this comment

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

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

@aadityasondhi aadityasondhi force-pushed the 20231206.remove-admission-header-warning branch from 64d07b2 to f7d5357 Compare December 6, 2023 16:24
@aadityasondhi
Copy link
Collaborator Author

I was missing the bazel import for build.

@aadityasondhi aadityasondhi requested a review from a team December 6, 2023 16:29
This error message, while useful for debugging, spams the logs with a
stack trace which can be distracting when reading the logs.

Since AC defaults to skip when there is an empty header, this is not a
concern, unless we see real-world performance impact (which we have
not).

This patch removes it from release builds while we figure out all the
sources for missing headers.

Informs cockroachdb#112680

Release note: None
@aadityasondhi aadityasondhi force-pushed the 20231206.remove-admission-header-warning branch from f7d5357 to 943f747 Compare December 6, 2023 16:56
Copy link
Collaborator Author

@aadityasondhi aadityasondhi left a comment

Choose a reason for hiding this comment

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

TFTRs!

bors r+

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

@craig
Copy link
Contributor

craig bot commented Dec 6, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.2.x Flags PRs that need to be backported to 23.2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants