-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.0.1
-
Component/s: Networking
-
None
-
Fully Compatible
-
ALL
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.
- duplicates
-
SERVER-10825 mongod debug output when closing a batch of connections from Java API doesn't decrement number of connections
- Closed
- is duplicated by
-
SERVER-21595 Connection bookkeeping appears incorrect
- Closed