[SERVER-39642] Decrement egress counter when scoped connection not returned to the pool Created: 15/Feb/19  Updated: 29/Oct/23  Resolved: 04/Jun/19

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: 3.6.10, 4.0.6, 4.1.8
Fix Version/s: 3.4.22, 3.6.14, 4.0.11, 4.2.0-rc1, 4.3.1

Type: Bug Priority: Major - P3
Reporter: Eric Sedor Assignee: Rahul Sundararaman (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2, v4.0, v3.6, v3.4
Sprint: Service Arch 2019-03-11, Service Arch 2019-03-25, Service Arch 2019-04-08, Service Arch 2019-06-17
Participants:
Case:

 Description   

this code calls kill() in certain cases and done() in others. Only done() decrements the _checkedOut value.

The result is that openConnections() rises inaccurately over time.

The inaccurate reporting was observed on 3.6.7 but code appears unchanged since. It's understood that PM-1121 may eventually obviate this pool but it may not be a difficult fix in the interim.



 Comments   
Comment by Githook User [ 07/Jun/19 ]

Author:

{'name': 'Rahul Sundararaman', 'email': 'rahul.sundararaman@10gen.com', 'username': 'rsbballguy'}

Message: SERVER-39642 Decrement egress counter when scoped connection not returned to the pool backport
Branch: v3.4
https://github.com/mongodb/mongo/commit/1cb17cca8d2cff0888a83adcdd7f9ceedc237dad

Comment by Githook User [ 07/Jun/19 ]

Author:

{'name': 'Rahul Sundararaman', 'email': 'rahul.sundararaman@10gen.com', 'username': 'rsbballguy'}

Message: SERVER-39642 Decrement egress counter when scoped connection not returned to the pool backportand fixed code format on replication_info.cpp
Branch: v3.6
https://github.com/mongodb/mongo/commit/1a7bb9c81ee88bbcceb9ce3ab8077249d8a1f249

Comment by Githook User [ 07/Jun/19 ]

Author:

{'name': 'Rahul Sundararaman', 'email': 'rahul.sundararaman@10gen.com', 'username': 'rsbballguy'}

Message: SERVER-39642 Decrement egress counter when scoped connection not returned to the pool backport
Branch: v4.0
https://github.com/mongodb/mongo/commit/982460e34cdd7cd5850ae7474343800a07d630fe

Comment by Githook User [ 07/Jun/19 ]

Author:

{'name': 'Rahul Sundararaman', 'email': 'rahul.sundararaman@10gen.com', 'username': 'rsbballguy'}

Message: SERVER-39642 Decrement egress counter when scoped connection not returned to the pool

(cherry picked from commit 82637430ff373bc3a64465c4de3ff9999f745105)
Branch: v4.2
https://github.com/mongodb/mongo/commit/fda81c9d4764b933753dfaad4212b217c271272e

Comment by Githook User [ 04/Jun/19 ]

Author:

{'name': 'Rahul Sundararaman', 'email': 'rahul.sundararaman@10gen.com', 'username': 'rsbballguy'}

Message: SERVER-39642 Decrement egress counter when scoped connection not returned to the pool
Branch: master
https://github.com/mongodb/mongo/commit/82637430ff373bc3a64465c4de3ff9999f745105

Generated at Thu Feb 08 04:52:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.