Question about mongodump output - question asked in training today

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tools
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Kevin Hanson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: