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

No records exported using mongodump in sharded/replicated set up

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 2.4.5
    • Tools
    • None
    • 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

    Description

      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
      }

      Attachments

        Activity

          People

            sverch Shaun Verch
            machielg Machiel Groeneveld
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: