[SERVER-19318] currentOp command should return cursor Created: 07/Jul/15 Updated: 25/Jan/19 Resolved: 02/Aug/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin, Diagnostics, Logging |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.10 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Charlie Page | Assignee: | Bernard Gorman |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | Query 2017-04-17, Query 2017-05-08, Query 2017-05-29, Query 2017-06-19, Query 2017-07-10 | ||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||||||||||||||||||||||||||||||
| Description |
There are 225 connections to the mongos, with 40 shards, each Trying to grow a buffer to 134 MB for the output of 4600 connections seems a little large (~32 kB/connection entry), but making the command scale is the goal. Introducing a cursor to the command (and others like it) would allow it to work on arbitrarily sized clusters. |
| Comments |
| Comment by Githook User [ 07/Jul/17 ] |
|
Author: {u'username': u'gormanb', u'name': u'Bernard Gorman', u'email': u'bernard.gorman@gmail.com'}Message: |
| Comment by Githook User [ 07/Jul/17 ] |
|
Author: {u'username': u'gormanb', u'name': u'Bernard Gorman', u'email': u'bernard.gorman@gmail.com'}Message: |
| Comment by Githook User [ 07/Jul/17 ] |
|
Author: {u'username': u'gormanb', u'name': u'Bernard Gorman', u'email': u'bernard.gorman@gmail.com'}Message: |
| Comment by Githook User [ 17/Jun/17 ] |
|
Author: {u'username': u'gormanb', u'name': u'Bernard Gorman', u'email': u'bernard.gorman@gmail.com'}Message: |
| Comment by Githook User [ 16/Jun/17 ] |
|
Author: {u'username': u'gormanb', u'name': u'Bernard Gorman', u'email': u'bernard.gorman@gmail.com'}Message: |
| Comment by Githook User [ 07/Jun/17 ] |
|
Author: {u'username': u'gormanb', u'name': u'Bernard Gorman', u'email': u'bernard.gorman@gmail.com'}Message: |
| Comment by Githook User [ 26/May/17 ] |
|
Author: {u'username': u'gormanb', u'name': u'Bernard Gorman', u'email': u'bernard.gorman@gmail.com'}Message: |
| Comment by Daniel Pasette (Inactive) [ 18/Jul/16 ] |
|
I like scott's idea as a short-term stop gap. |
| Comment by Scott Hernandez (Inactive) [ 18/Jul/16 ] |
|
Now the more stuff is in currentOp, like the getmore predicates, it should be much easier to hit the document limit when working with a single server. Another solution to the problem, short of returning a cursor, is just to stop adding curOp entries before the size is met, and to indicate there are missing entries. |