Skip to content

nodeJs MariaDB 3.2.0 -> MariaDB 3.2.1 (and subsequent) connector hanging issue on AWS lambda with RDS (MariaDB) #307

@Leigh-M

Description

@Leigh-M

When connector is installed with npm i [email protected] AWS lambda permits connection to RDS (MariaDB) with minimal config:

    const pool = mariadb.createPool({
        host: 'someHostName',
        user: 'someuser',
        database: 'someDB',
        password: 12345
        connectionLimit: 5,
        port: 3306
    });

Yet when installed with npm i [email protected] (and any subsequent later release) the connection just hangs with:

{
  "name": "SqlError",
  "sqlMessage": "retrieve connection from pool timeout after 10000ms\n    (pool connections: active=0 idle=0 limit=5)",
  "sql": null,
  "fatal": false,
  "errno": 45028,
  "sqlState": "HY000",
  "code": "ER_GET_CONNECTION_TIMEOUT"
}

The release notes mention only:

  • Binary Result-Set Parsing Improvements (CONJS-262):
  • New Option for infileStreamFactory (CONJS-266):

Neither of these appear to constitute such a breaking change? I assume there is another undocumented (unintended?) breaking change that needs to be understood and documented?

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