Document that collection enumeration is limited to 100 entries on 2.6

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Huan Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: