Commit f7f475a
authored
Update mssql dependency to fix bugs when databases go down (#9)
* Update mssql dependency to fix bugs when databases go down
- New `healthy` property in pool stats which indicates whether or not a pool was capable of serving requests _since the last request was served_. This means that the secondary pool could show as healthy but actually be unhealthy because it hasn't served any requests recently. If the primary pool shows as healthy, it's likely in a healthy state if it's receiving any semblance of traffic.
- No more stuck requests, resource churn, and broken failover when a database goes down. `0.3.*` suffered from a bug in the `mssql` package due to some unexpected/broken behavior in `generic-pool`. `mssql` was bumped to `6.0.0-alpha.2`, which replaced `generic-pool` with `tarn`.
- Improved integration tests to handle failover, healing, and promotion scenarios by introducing a second mssql container.1 parent 2963896 commit f7f475a
File tree
33 files changed
+2421
-1005
lines changed- src
- test
- mssql-setup
- parallel
- serial
33 files changed
+2421
-1005
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
1 | 21 | | |
2 | 22 | | |
3 | 23 | | |
| |||
0 commit comments