Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Improve logging of problems during db connection #1488

@kamil-holubicki

Description

@kamil-holubicki

Some error logs indicate only the error returned by the server without
the information about the server identity itself.
On the other hand, there are also logs which display the server identity
together with the returned error.

Example:

2022-03-30T08:59:22.718093+02:00 orchestrator123.prod.com orchestrator[39052]: 2022-03-30 08:59:22 ERROR Error 3884: Storage engine could not allocate temporary tablespace for this session.

There is no way to identify which MySql server causes problems.

On the other hand sometimes there are logs which provide full context:

2022-03-30T09:49:03.634230+02:00 orchestrator123prod.com orchestrator[39052]: 2022-03-30 09:49:03 ERROR ReadTopologyInstance(mysqlserver-321.prod.com:3306) show global status like 'Uptime': Error 3884: Storage engine could not allocate temporary tablespace for this session.

Error logs should be consistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions