Skip to content

log: include stack trace when exiting node due to log error #152636

@kyle-a-wong

Description

@kyle-a-wong

Describe the problem

In a recent incident, nodes were exiting while outputting logs due to this function being called:

func (l *loggerT) exitLocked(err error, code exit.Code) {

Since SRE doesn't work a lot with the DB code, it wasn't obvious to them why the nodes were exiting and took some time before realizing that the nodes were exiting due to errors being thrown from the logging sink.

SRE mentioned that one thing they look out for in the case of node crashes is stack traces and requested that we include a stack trace when exiting here to make more apparent that nodes are exiting due to log sink issues.

Jira issue: CRDB-53952

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.O-postmortemOriginated from a Postmortem action item.T-supportability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions