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

server: simplify logic for logging failed pgwire cancel #97270

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

rafiss
Copy link
Collaborator

@rafiss rafiss commented Feb 16, 2023

Now that we only log when the rate limit is exceeded, it is simpler to move the log statement inside of the pgwire function that does the cancellation. This also removed the need for the server router to wait for all servers to respond to the request.

Informs #91386
Release note: None

Now that we only log when the rate limit is exceeded, it is simpler to
move the lgo statement inside of the pgwire function that does the
cancellation. This also removed the need for the server router to wait
for all servers to respond to the request.

Release note: None
@rafiss rafiss requested review from knz and a team February 16, 2023 22:30
@rafiss rafiss requested review from a team as code owners February 16, 2023 22:30
@rafiss rafiss requested a review from a team February 16, 2023 22:30
@rafiss rafiss requested a review from a team as a code owner February 16, 2023 22:30
@blathers-crl
Copy link

blathers-crl bot commented Feb 16, 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

@rafiss rafiss requested review from knz and removed request for knz March 7, 2023 22:11
Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

i like the simplification. thanks!

Copy link
Collaborator Author

@rafiss rafiss 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=knz

@craig
Copy link
Contributor

craig bot commented Mar 7, 2023

Build succeeded:

@craig craig bot merged commit fa0440b into cockroachdb:master Mar 7, 2023
@rafiss rafiss deleted the simplify-cancel-logging branch March 8, 2023 20:16
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