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

adapter: Reduce a warn! to an info! #29641

Closed

Conversation

ParkMyCar
Copy link
Member

This PR reduces a warn! to an info! because previously we've seen getting the backtrace after the warn take a significant amount of time and this scenario is somewhat expected.

Motivation

Fixes https://github.com/MaterializeInc/database-issues/issues/8301

The ability for this PR to fix that linked issue is predicated on the idea that for warn!s we automatically get a backtrace, which is something I'm not sure about. @def- do you know?

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.

@ParkMyCar ParkMyCar requested review from def- and jkosh44 September 18, 2024 19:25
@ParkMyCar ParkMyCar requested a review from a team as a code owner September 18, 2024 19:25
Comment on lines +712 to +715
// Note: it's possible that the secret can be dropped before we have
// a chance to cleanup the replication slot. This is somewhat expected
// so emit a log but there's no reason to have an error.
tracing::info!(
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any way to keep it as a warn but remove the stack trace? warn feels a bit more appropriate because it's unexpected.

@def- def- changed the title adatper: Reduce a warn! to an info! adapter: Reduce a warn! to an info! Sep 18, 2024
@def-
Copy link
Contributor

def- commented Sep 18, 2024

@def- do you know?

I'm not sure! I just noticed the large backtrace in that one case, normally I don't remember seeing backtraces for warnings.

@ParkMyCar ParkMyCar closed this Jan 13, 2025
@ParkMyCar ParkMyCar deleted the adapter/reduce-warn-to-info branch January 13, 2025 00:39
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