Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2282

Document that collection enumeration is limited to 100 entries on 2.6

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.0
    • Affects Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Not Needed

      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>

       

        1. main.go
          0.9 kB

            Assignee:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Reporter:
            huan.li@mongodb.com Huan Li
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: