[SERVER-30837] shardConnPoolStats can return a document larger than 16MB Created: 25/Aug/17  Updated: 06/Aug/18  Resolved: 06/Aug/18

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

Type: Bug Priority: Major - P3
Reporter: Andrew Young Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:
Case:

 Description   

The shardConnPoolStats command can return a document that is larger than 16MB for especially large clusters. This causes the command to fail.

mongos> db.runCommand({ shardConnPoolStats: 1 })
{
	"ok" : 0,
	"errmsg" : "BSONObj size: 19285201 (0x12644D1) is invalid. Size must be between 0 and 16793600(16MB) First element: totalInUse: 1247",
	"code" : 10334
}



 Comments   
Comment by Gregory McKeon (Inactive) [ 06/Aug/18 ]

You should run ConnPoolStats over shardConnPoolStats and shardConnPoolStats is being removed in 4.2, so we're closing this as Won't Fix.

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