Skip to content

MySQL Event Listener - Trino coordinator fails to start if MySQL is unavailable during schema validation #26252

@danielbelchior

Description

@danielbelchior

Currently, when the Trino coordinator starts, the MySQL Event Listener plugin attempts to connect to the MySQL database to validate the schema. However, if the MySQL server is temporarily unavailable (e.g., during restart or maintenance), the coordinator fails to start entirely, causing the entire Trino service to remain offline.

Suggested improvement:

Wrap the schema validation logic in a try/catch block and log a warning instead of throwing a fatal exception. This way, the coordinator can still start, and the plugin can retry the connection later when MySQL becomes available again.

This would make the system more resilient to transient database outages and improve overall availability.

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