[CONJS-84] option `restoreNodeTimeout` is not respected when removeNodeErrorCount is set Created: 2019-06-17 Updated: 2019-06-20 Resolved: 2019-06-20 |
|
| Status: | Closed |
| Project: | MariaDB Connector/node.js |
| Component/s: | cluster |
| Affects Version/s: | None |
| Fix Version/s: | 2.1.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Goal is to correct wrong behaviour when setting restoreNodeTimeout: cluster isn't blacklisting node if the option "removeNodeErrorCount" was set, only after number of error reach "removeNodeErrorCount" value. Correction is to make that corresponds to documentation: when a node fails, it will be blacklisted, so the connection will be done on other nodes. If "removeNodeErrorCount" value is set and reached, the node will be removed. |