Skip to content

Conversation

@enjoy-binbin
Copy link
Contributor

We have cases where we print information (might be important but by no means an error indicator) with the LL_WARNING level. Maybe we should demote these to LL_NOTICE:

  • oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
  • User requested shutdown...

This is also true for cases that we encounter a rare but normal situation. Maybe here we should too demote to LL_NOTICE. Examples:

  • AOF was enabled but there is already another background operation. An AOF background was scheduled to start when possible.
  • Connection with master lost.

base on yoav-steinberg's #10650 (comment) and yossigo's #10650 (review)

@oranagra
Copy link
Member

@madolson please comment on the cluster related log prints.
if they indicate an error that should never ever happen, or a normal (possibly degraded) operation.

@yossigo please approve. i understand you consider that a possibly breaking change so we'll list it in the release notes, but other than that, i imagine we can merge it?

@oranagra
Copy link
Member

i said i'm unsure about these, not that you should revert them.. please don't resolve the comments and let's see what feedback we get.

@enjoy-binbin
Copy link
Contributor Author

sorry, after a re-thinking, i changed it. i did keep the comment open

@oranagra
Copy link
Member

discussed with Yossi, since this could be breaking change (for someone parsing the log file), and the value it brings is low, we decided to push this back to 7.2

@madolson
Copy link
Contributor

What are the tenets for setting the value of the different log levels? Are we recategorizing warnings to be "errors" and everything else goes down to notice?

@oranagra
Copy link
Member

@madolson yes, when we started coloring warnings in red in the other PR, it looked odd since some are not indicating any error.
the levels in redis were more about frequency (using WARNING for ones that are not frequent).
if we really want to turn users attention to warnings (like invalid configuration or degraded state), we need to demote the other ones that are just normal operation.

the other alternative was to introduce a new LL_ERROR, and promote the errors to that one, but it seems it'll require more changes, and also could be a greater breaking change for both modules and anyone who's parsing this file.

@madolson
Copy link
Contributor

Alright, the ones in cluster.c look all correct, I also double checked all the existing cases.

I agree, I don't think we need an ERROR.

@oranagra
Copy link
Member

@madolson by correct you mean the current version of the PR?
there were some additional changes which i wasn't sure about (posted code-review comments on them), and @enjoy-binbin reverted these changes.
to make sure there's no confusion, can you please go over the unresolved comments above and comment on them?

@madolson
Copy link
Contributor

@enjoy-binbin Are you going to revive and merge this? I think we kind of dropped this.

@enjoy-binbin
Copy link
Contributor Author

@madolson i updated it and took a quick look with all the new code, it is now the final version. please re-review

Copy link
Member

@oranagra oranagra left a comment

Choose a reason for hiding this comment

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

everything outside cluster.c and sentinel.c looks good to me.

Copy link
Contributor

@madolson madolson left a comment

Choose a reason for hiding this comment

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

Re-reviewed the cluster stuff and it all still looks ok.

@madolson
Copy link
Contributor

@soloestoy @yossigo Do one of you two have enough context to review the sentinel logs?

@oranagra
Copy link
Member

@moticless can you ack that the changes to sentinel make sense (the log messages that were demoted are just info on normal behaviour and not an indication of an error)

@moticless
Copy link
Collaborator

Sentinel LGTM. Thanks.

@oranagra oranagra merged commit 521e54f into redis:unstable Feb 19, 2023
@enjoy-binbin enjoy-binbin deleted the warning_to_notice branch February 19, 2023 15:02
odaiwa pushed a commit to odaiwa/redis that referenced this pull request Feb 20, 2023
We have cases where we print information (might be important but by
no means an error indicator) with the LL_WARNING level.
Demoting these to LL_NOTICE:
- oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
- User requested shutdown...

This is also true for cases that we encounter a rare but normal situation.
Demoting to LL_NOTICE. Examples:
- AOF was enabled but there is already another background operation. An AOF background was scheduled to start when possible.
- Connection with master lost.


base on yoav-steinberg's redis#10650 (comment)
and yossigo's redis#10650 (review)
enjoy-binbin added a commit to enjoy-binbin/redis that referenced this pull request Jul 31, 2023
We have cases where we print information (might be important but by
no means an error indicator) with the LL_WARNING level.
Demoting these to LL_NOTICE:
- oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
- User requested shutdown...

This is also true for cases that we encounter a rare but normal situation.
Demoting to LL_NOTICE. Examples:
- AOF was enabled but there is already another background operation. An AOF background was scheduled to start when possible.
- Connection with master lost.


base on yoav-steinberg's redis#10650 (comment)
and yossigo's redis#10650 (review)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done
Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants