[GODRIVER-2282] Document that collection enumeration is limited to 100 entries on 2.6 Created: 25/Jan/22  Updated: 10/Feb/22  Resolved: 10/Feb/22

Status: Closed
Project: Go Driver
Component/s: Documentation
Affects Version/s: None
Fix Version/s: 1.9.0

Type: Task Priority: Major - P3
Reporter: Huan Li Assignee: Benji Rewis (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File main.go    
Issue Links:
Problem/Incident
Related
Case:
Documentation Changes: Not Needed

 Description   

Summary

We got a Mongomirror help ticket that complains Mongomirror didn't migrate all the collections from a 2.6 replicaset. After debugging I found the cursor returned from Go drive ListCollections function doesn't return all the collections during iteration. There are at most 101 collections returned by the cursor.

This happens on 2.6 server either standalone or replicaset.

How to Reproduce

Use mlaunch to bring up a 2.6 server on port 27017. Run main.go.

You will see although 120 collections were created, the output is 

...

col97
col98
col99
count: 101, cursor err: <nil>

 



 Comments   
Comment by Benji Rewis (Inactive) [ 10/Feb/22 ]

We've documented that collection enumeration is limited to 100 entries on MongoDB version 2.6 as a known bug in the Go driver.

Comment by Benji Rewis (Inactive) [ 10/Feb/22 ]

https://github.com/mongodb/mongo-go-driver/pull/850

Comment by Ryan Chipman [ 02/Feb/22 ]

tim.fogarty robert.walters are we proposing that

we make a support-policy decision that mongomirror will not support migration of 2.6 clusters that have more than 100 collections

or that

mongomirror has a bug that prevents migration of 2.6 clusters that have more than 100 collections, and we're choosing not to fix it at this time

The two are similar, but it seems like they might be slightly different wrt esha.bhargava's question

Comment by Jessica Sigafoos [ 01/Feb/22 ]

robert.walters, ryan.chipman , please see Esha's question in the comment above.

Generated at Thu Feb 08 08:38:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.