[CONJS-246] pool not listening to 'error' event might exit application on error Created: 2023-02-28  Updated: 2023-03-01  Resolved: 2023-02-28

Status: Closed
Project: MariaDB Connector/node.js
Component/s: pool
Affects Version/s: 3.0.2, 3.0.0, 3.0.1, 3.1.0
Fix Version/s: 3.1.1

Type: Bug Priority: Blocker
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

following discussion on https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/180

In 3.x version, pool that doesn't have a listener on 'error' event will exit application.

as a workaround, adding code

pool.on('error', (err) => {});

solve the problem.


Generated at Thu Feb 08 03:23:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.