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

Uncaught exception: distinct failed

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.6.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      CentOS 5.4, 64-bit, Xen environment
    • ALL

      Using the 1.6.5-rc2- 2010-11-21 nightly build

      I have a capped collection called "hits2" which is set with a size of 1GB (if it means anything, I'm running into the same thing with a different collection capped at 100MB). When using the mongo shell and running distinct() on a particular key of the documents, it works fine until the capped collection is full. Now, most of the time that this is executed, I get the following error message:

      > db.hits2.distinct("userName")                      
      Mon Nov 22 10:41:08 uncaught exception: distinct failed: {
      	"errmsg" : "exception: assertion db/../bson/bsonelement.h:448",
      	"code" : 0,
      	"ok" : 0
      }
      

      I can sometimes get the distinct() command to return results and sometimes it will return a partial list before throwing the error mid-way through.

            Assignee:
            Unassigned Unassigned
            Reporter:
            tdavisson Troy Davisson
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: