-
Notifications
You must be signed in to change notification settings - Fork 236
improve: logging for resource filter cache #3167
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
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
f66132b
feat: ReconcileUtils for strongly consistent updates (#3106)
csviri 739fdd9
improve: logging for resource filter cache
csviri 04be614
wip
csviri e3fb0b8
wip
csviri 44e30f5
wip
csviri e5f0d59
wip
csviri 615bd18
wip
csviri d50bcf1
wip
csviri 8386c00
wip
csviri ea0cd7e
wip
csviri f1e7343
wip
csviri a373231
wip
csviri e69c9e5
Update operator-framework-core/src/main/java/io/javaoperatorsdk/opera…
csviri 2c85992
Update operator-framework-core/src/main/java/io/javaoperatorsdk/opera…
csviri aa47b87
Update operator-framework-core/src/main/java/io/javaoperatorsdk/opera…
csviri bd220f0
Update operator-framework-core/src/main/java/io/javaoperatorsdk/opera…
csviri 47b678c
wip
csviri 2a06720
fix: potential NPE
metacosm 71fa858
fix: typo
metacosm a039ab4
refactor: use accessor instead of field
metacosm 820fb84
fixes from code review
csviri b6b75f9
update docs
csviri 9012415
docs: add disabling MDC support information
metacosm 918151f
fix: grammar
metacosm 1b78b46
fix: format
metacosm cf00012
refactor: enhanced switch
metacosm a9ef140
fix: make message coherent with other event handlers
metacosm 69d8fa5
fix: typo
metacosm 7981cef
fix: format
metacosm 0c0e88d
fix: remove misleading 'for resource'
metacosm 5275067
fix: remove unused variable
metacosm 2211da1
fix: minor
metacosm 9472a0b
fix: remove wrong javadoc
metacosm 485de7b
fix: minor
metacosm f7868be
fix: format
metacosm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The MDC key names defined here do not match the keys used in the log4j2.xml pattern layouts. The log4j2.xml files reference keys like
informer.name,informer.event.action,informer.event.resource.name, etc., but the code defineseventsource.name,eventsource.event.action,eventsource.event.resource.name, etc. This mismatch will cause the MDC values not to appear in the logs as expected.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.
This looks like an hallucination but I'm not super familiar with how MDC is used so 🤷
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.
Actually, these should be documented in the appropriate doc section, along with the way to enable / disable it (which I don't think is documented).
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.
Yes, will add this to the docs, although this is not that interesting for the user, since this happens outside the reconciliation, but should be in the docs at least mentioned.