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

db.collection.count() returns -1

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.4
    • Component/s: Querying
    • Labels:
      None
    • ALL
    • Hide

      Get dump of "swipes" collection from attached test.bson
      Run mongorestore --collection swipes --db databasename /Users/airs0urce/Desktop/test.bson

      Show
      Get dump of "swipes" collection from attached test.bson Run mongorestore --collection swipes --db databasename /Users/airs0urce/Desktop/test.bson

      I have several collections in db. Mongo uses WiredTiger engine.
      I removed all records in "swipes" collection (all at once).

      then tried to run db.swipes.count() and it returned -1.
      https://dl.dropboxusercontent.com/u/1875424/1_count_returns_minus_1.png

      Then I made dump of swipes collection on remote server:
      https://dl.dropboxusercontent.com/u/1875424/2_dump_buggy_collection.png

      Downloaded, unpacked and tried to restore that collection on local machine:
      https://dl.dropboxusercontent.com/u/1875424/3_attemt_to_restore.png

      On remote and local machines I use Mongo 3.2.4.

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            airs0urce airs0urce
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: