Skip to content
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

Log summarised description of StartupExceptions #44536

Closed

Commits on Jul 18, 2019

  1. Log summarised description of StartupExceptions

    When a Node fails to start, it will throw a StartupException on the
    main thread which will cause the process to exit.
    Previously these were simply logged in the same way as any other
    uncaught exception, which would potentially result in long stack
    traces with the key details (the primary cause) being nested somewhere
    in the middle of the log lines. This was particularly true if the
    failure was due to an exception being thrown within a plugin - the
    primary cause may well have been wrapped in two or three other
    exceptions before it was logged.
    
    This commit adds a new summarised description whenever there is an
    uncaught StartupException. This summary is logged before and after the
    standard stack trace logging to make it more prominent and increase
    the likelihood that it will be noticed and understood.
    
    The summary focuses on printing messages from ElasticsearchExceptions
    as these are the most likely to hold clear, specific and actionable
    information and also prints the message for each cause of the
    ElasticsearchException which may contain the precise details (e.g. the
    pathname in a FileNotFoundException or AccessDeniedException).
    
    Resolves: elastic#34895
    tvernum committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    5f85da6 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. Configuration menu
    Copy the full SHA
    2be2006 View commit details
    Browse the repository at this point in the history