-
Notifications
You must be signed in to change notification settings - Fork 219
Log the detailed exception when reconciliation #935
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
Conversation
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
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 this would be better to catch in ControllerExecution
. @zuston could you change it pls ? or I can issue a new PR
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/Controller.java
Outdated
Show resolved
Hide resolved
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
Or rather here:
Wondering why this does not work. |
I was wondering about that, indeed, and thought that we could do that in a subsequent PR. |
Probably just this should be an error level:
Or just removed and handle all the runtime exceptions as it is now without this part. |
The thing is, for me it seems that the only problem is we make different logging for client exception, as you can see we catch all the exceptions also for cleanup in the quoted code. So I would just remove that special case for the client. |
We don't have a slack group, there is a Discord server, use this to join: https://discord.gg/DacEhAy |
When implementing the controller like
TomcatReconciler
and throw exception when accepting k8s event, the log will not throw the exception stacktrace. Due to this limitation, I spent lot of time to dig operator framework and found the fundamental failure.So i hope this PR to solve this problem.