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

Question about mongodump output - question asked in training today

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Tools
    • None

    Description

      Hi there,

      I have a question about mongodump output. I had a student in my class show me the following output:

      kevinhanson@ubuntu:~$ labcorp/mongodb-linux-x86_64-2.2.0/bin/mongodump --oplog
      connected to: 127.0.0.1
      Thu Sep 27 21:37:31 all dbs
      Thu Sep 27 21:37:31 DATABASE: test to dump/test
      Thu Sep 27 21:37:31 test.test to dump/test/test.bson
      Thu Sep 27 21:37:31 doing snapshot query
      Thu Sep 27 21:37:31 2 objects
      Thu Sep 27 21:37:31 Metadata for test.test to dump/test/test.metadata.json
      Thu Sep 27 21:37:31 test.stuff to dump/test/stuff.bson
      Thu Sep 27 21:37:31 doing snapshot query
      Thu Sep 27 21:37:31 3 objects
      Thu Sep 27 21:37:31 Metadata for test.stuff to dump/test/stuff.metadata.json
      Thu Sep 27 21:37:31 local.oplog.rs to dump/oplog.bson
      Thu Sep 27 21:37:31 0 objects

      His question was, "Why are there zero objects for the oplog?" I'm confused as well. I see that an oplog.bson file got dumped into the dump directory. What do the number of objects refer to, in general? Thanks! I'd like to report back by the start of training in the morning. I don't see any reference to the objects on the manual here: http://docs.mongodb.org/manual/reference/mongodump/ Perhaps we should update that documentation.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevinhanson Kevin Hanson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: