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

backupccl,changefeedccl: properly display name if resource exists #96272

Conversation

renatolabs
Copy link
Contributor

Previously, we were passing a *string to a string formatting function (pgnotice.Newf) with the %q verb. This leads to messages being displayed to the user that look like:

NOTICE: schedule %!q(*string=0xc006b324e0) already exists, skipping

This properly dereferences the pointer before printing.

Epic: none

Release note: None

Previously, we were passing a `*string` to a string formatting
function (`pgnotice.Newf`) with the `%q` verb. This leads to messages
being displayed to the user that look like:

```
NOTICE: schedule %!q(*string=0xc006b324e0) already exists, skipping
```

This properly dereferences the pointer before printing.

Epic: none

Release note: None
@renatolabs renatolabs requested review from a team as code owners January 31, 2023 15:24
@renatolabs renatolabs requested review from msbutler and HonoreDB and removed request for a team January 31, 2023 15:24
@blathers-crl
Copy link

blathers-crl bot commented Jan 31, 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

Copy link
Contributor

@HonoreDB HonoreDB left a comment

Choose a reason for hiding this comment

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

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

@renatolabs
Copy link
Contributor Author

Data race in extended CI is unrelated. Created #96274.

@renatolabs
Copy link
Contributor Author

Timeout on TestChangefeedRandomExpressions/kafka unrelated to the change here. Potentially related: #96052.

@renatolabs
Copy link
Contributor Author

TFTRs!

bors r=msbutler,HonoreDB

@craig
Copy link
Contributor

craig bot commented Jan 31, 2023

Build succeeded:

@craig craig bot merged commit e402d82 into cockroachdb:master Jan 31, 2023
@renatolabs renatolabs deleted the rc/backup-changefeed-already-exists-message-fix branch April 28, 2023 19:02
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.

4 participants