[CONJS-200] Improve pool error detection Created: 2022-06-01  Updated: 2022-07-19  Resolved: 2022-06-01

Status: Closed
Project: MariaDB Connector/node.js
Component/s: API, documentation, pool
Affects Version/s: None
Fix Version/s: 3.0.1

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Goal of this task is to provide better error handling to pool.

Error message content 'Error during pool initialization' or 'Pool fails to create connection' depending on if this occurs during initialization or during pool lives.

Better connection error identification use 2 ways :

  • Adding new 'error' event to pool.
  • When pools doesn't have any connection, task reaching will throw connection error.

Error was a common "retrieve connection from pool timeout after 10000ms" for example. Now error message will be explicit depending on the issue


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