-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve][broker] ServerCnx: log at warning level when topic not found #16225
[improve][broker] ServerCnx: log at warning level when topic not found #16225
Conversation
LGTM +1(non binding) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say info is more appropriate here. There is nothing wrong on the broker, just a client is trying to use a topic that does not exist (and auto-creation is turned off).
Also, WARN typically will not trigger an alert (as they would be super-noisy with lot of false positives).
@merlimat - this indicates something is wrong and need to be fixed in either client or server. |
When I'm looking at broker logs I am scanning for |
@merlimat on the clusters that you operate are you paged on |
The pr had no activity for 30 days, mark with Stale label. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@merlimat PTAL |
The pr had no activity for 30 days, mark with Stale label. |
Triggering a new CI build. |
Codecov Report
@@ Coverage Diff @@
## master #16225 +/- ##
=========================================
Coverage ? 51.05%
Complexity ? 8724
=========================================
Files ? 607
Lines ? 53397
Branches ? 5712
=========================================
Hits ? 27260
Misses ? 23072
Partials ? 3065
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
### Motivation In #13950, we switched an error log to an info log. @hsaputra requested on Pulsar Slack we use warn level so that alerts still fire in for the case when the topic is not found. ### Modifications * Replace `info` with `warn` when topic is not found in the `ServerCnx` class. - [x] `doc-not-needed` (cherry picked from commit 72e0445)
### Motivation In #13950, we switched an error log to an info log. @hsaputra requested on Pulsar Slack we use warn level so that alerts still fire in for the case when the topic is not found. ### Modifications * Replace `info` with `warn` when topic is not found in the `ServerCnx` class. - [x] `doc-not-needed` (cherry picked from commit 72e0445)
…#16225) ### Motivation In apache#13950, we switched an error log to an info log. @hsaputra requested on Pulsar Slack we use warn level so that alerts still fire in for the case when the topic is not found. ### Modifications * Replace `info` with `warn` when topic is not found in the `ServerCnx` class. - [x] `doc-not-needed` (cherry picked from commit 72e0445) (cherry picked from commit 58dfefc)
Motivation
In #13950, we switched an error log to an info log. @hsaputra requested on Pulsar Slack we use warn level so that alerts still fire in for the case when the topic is not found.
Modifications
info
withwarn
when topic is not found in theServerCnx
class.doc-not-needed