Skip to content

Commit 2c18432

Browse files
committed
Fixed bug that causes pooled connections to wait forever in certain heavy workload scenarios (Issue #1700)
1 parent 20a2d8c commit 2c18432

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

doc/src/release_notes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ Common Changes
5050
Thin Mode Changes
5151
+++++++++++++++++
5252

53+
#) Fixed bug that causes pooled connections to wait forever in certain heavy
54+
workload scenarios.
55+
See `Issue #1700 <https://github.com/oracle/node-oracledb/issues/
56+
1700>`__.
57+
5358
#) Fixed cursor leak for dbobject binds using :meth:`connection.getDbObjectClass()`.
5459
See `Issue #1694 <https://github.com/oracle/node-oracledb/issues/
5560
1694>`__.

lib/pool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ class Pool extends EventEmitter {
423423
throw err;
424424
}
425425

426-
if (this._connectionsOut >= poolMax ||
426+
while (this._connectionsOut >= poolMax ||
427427
this.status === constants.POOL_STATUS_RECONFIGURING) {
428428

429429
// when the queue is huge, throw error early without waiting for queue

0 commit comments

Comments
 (0)