db.collection.count() returns -1

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.2.4
    • Component/s: Querying
    • 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
              Unassigned
              Reporter:
              airs0urce
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: