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

No records exported using mongodump in sharded/replicated set up

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.4.5
    • Component/s: Tools
    • None
    • Environment:
      Linux 3.2.0-53-virtual #81-Ubuntu SMP Thu Aug 22 21:21:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    • Linux

      Calling mongodump through mongos results in zero records when it should return the records that are in the database (in this case about 44000).

      Mongos is running on the same hosts as one primary node. Behavior is not consistent though, sometimes it works.

      Command used:
      /opt/mongodb/bin/mongodump -h 127.0.0.1 --port 27018 -d db_production -c collection_views -q '

      {"time_id":20131203}

      '

      Set up has 3 shards, 4 nodes per shard.

      There is a TTL index on this collection:

      {
      		"v" : 1,
      		"key" : {
      			"created_at" : 1
      		},
      		"ns" : "db_production.collection_views",
      		"name" : "created_at_1",
      		"expireAfterSeconds" : 432000,
      		"background" : true
      }
      

            Assignee:
            sverch Shaun Verch (Inactive)
            Reporter:
            machielg Machiel Groeneveld
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: