ISSUE SUMMARY
A logical bug in the query execution code would under certain circumstances output internal representations instead of the actual result documents.
USER IMPACT
The scope is very narrow and can only occur on complex queries when an index intersection plan is chosen. If returned documents look like {"":1234} (or any other number) this is an indication that this bug may be triggered.
WORKAROUNDS
N/A
AFFECTED VERSIONS
All production release versions from 2.6.0 to 2.6.3 are affected by this issue.
FIX VERSION
The fix is included in the 2.6.4 production release.
RESOLUTION DETAILS
Correctly handle hash intersections with fetched and non-fetched data.
Original description
After making some queries, mongo gets to inconsistent state: for some specific query it gives the response such as
{"":1234}which is not a proper document (for example _id is missing). The bug vanishes when restarting mongodb server.