[SERVER-23123] db.collection.count() returns -1 Created: 14/Mar/16  Updated: 14/Mar/16  Resolved: 14/Mar/16

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 3.2.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: airs0urce Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File test.bson    
Issue Links:
Duplicate
duplicates SERVER-23124 db.collection.count() returns -1 Closed
Operating System: ALL
Steps To Reproduce:

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

Participants:

 Description   

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.


Generated at Thu Feb 08 04:02:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.