[SERVER-17797] opened connection count in "end connection" log messages not accurate Created: 30/Mar/15  Updated: 14/Jul/16  Resolved: 21/Jun/16

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: 3.0.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Cory Mintz Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-10825 mongod debug output when closing a ba... Closed
is duplicated by SERVER-21595 Connection bookkeeping appears incorrect Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

I created a MongoClient with the Java driver and made simultaneous requests from many threads, causing the connection pool to grow. When the MongoClient is closed all of those connections get closed very quickly. My MongoD log contains the following:

 
2015-03-30T10:27:37.754-0400 I NETWORK  [conn620] end connection 127.0.0.1:57028 (11 connections now open)
2015-03-30T10:27:37.754-0400 I NETWORK  [conn615] end connection 127.0.0.1:57023 (11 connections now open)
2015-03-30T10:27:37.754-0400 I NETWORK  [conn616] end connection 127.0.0.1:57024 (11 connections now open)
2015-03-30T10:27:37.754-0400 I NETWORK  [conn617] end connection 127.0.0.1:57025 (11 connections now open)
2015-03-30T10:27:37.754-0400 I NETWORK  [conn618] end connection 127.0.0.1:57026 (10 connections now open)
2015-03-30T10:27:37.754-0400 I NETWORK  [conn619] end connection 127.0.0.1:57027 (10 connections now open)
2015-03-30T10:27:37.755-0400 I NETWORK  [conn611] end connection 127.0.0.1:57017 (6 connections now open)
2015-03-30T10:27:37.755-0400 I NETWORK  [conn613] end connection 127.0.0.1:57019 (6 connections now open)
2015-03-30T10:27:37.755-0400 I NETWORK  [conn614] end connection 127.0.0.1:57020 (6 connections now open)
2015-03-30T10:27:37.755-0400 I NETWORK  [conn609] end connection 127.0.0.1:57015 (6 connections now open)
2015-03-30T10:27:37.755-0400 I NETWORK  [conn610] end connection 127.0.0.1:57016 (6 connections now open)
2015-03-30T10:27:37.755-0400 I NETWORK  [conn612] end connection 127.0.0.1:57018 (6 connections now open)

The "connections now open" repeats, rather then counting down to 0.


Generated at Thu Feb 08 03:45:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.