-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Don't log multi-megabyte guice exceptions. #13782
Conversation
Instead just log the same thing we print to the startup console for that case (magic logic), it sucks to do this, but guice exceptions are too much. All other non-guice exceptions will still be fully logged.
👍 |
For something like a bad network host, i get a 2KB log (the same magic logic going to console) instead of a 4MB one:
I am the first to be against hiding exceptions in any way, but 4MB is over the top anywhere. |
I'm setting this as a bug for 2.0, because I think it is too important. Feel free to uncheck that if you think it is wrong to do. |
I think it's fairly critical as the experience for the operator wasn't great, and 2.0 is all about fixing that. |
LGTM |
Does anyone else have feelings/concerns on this? I know i do, about hiding exception stuff that may be important. That is why I always hate hiding any part of an exception/stacktrace in any way. But 4MB is crazy, the way I see it, there has to be a line somewhere. |
+1 |
LGTM |
Instead just log the same thing we print to the startup console for that case (magic logic), it sucks to do this, but guice exceptions are too much. All other non-guice exceptions will still be fully logged. Closes #13782
Instead just log the same thing we print to the startup console for that case (magic logic), it sucks to do this, but guice exceptions are too much. All other non-guice exceptions will still be fully logged. Closes #13782
This still seems to be an issue in ES 2.0. It generated 40 GB of logs with messages like the following.
|
That is because this is not a fix. The fix is to remove guice. |
@sherry-ger I wonder whether this is guice driven - do you have the bottom of the stack trace / something else? do you know where is that NullPointerException coming from? |
Instead just log the same thing we print to the startup console for that case (magic logic),
it sucks to do this, but guice exceptions are too much.
All other non-guice exceptions will still be fully logged.
cc: @drewr