Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3086

mongoexport only exports one shard's worth of data

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.1
    • Affects Version/s: 1.9.0
    • Component/s: Tools
    • Labels:
      None
    • ALL

      Run:

      $ python simple-setup.py --chunksize=1

      In the shell:

      > for(i=0;i<10000000;i++) {db.foo.insert(

      {x:1,y:i,date:new Date(), str:"all the talk on the market"}

      ); }
      > db.foo.count()
      10000000

      Export this collection:

      $ mongoexport -d test -c foo -o foo.json
      connected to: 127.0.0.1
      exported 2610450 records

            Assignee:
            greg_10gen Greg Studer
            Reporter:
            kristina Kristina Chodorow (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: