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

group failed : Command failed with error 139: 'Failure to enumerate object'

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.3
    • Component/s: JavaScript, Querying
    • None
    • Fully Compatible
    • ALL
    • Hide
      db.coll.insert({_id: 1, user: {id: 1016, name: "jack"}})
      db.coll.insert({_id: 2, user: {id: 1017, name: "rose"}})
      
      db.getCollection("coll").group({
          key:{'user.id':1},
      
      reduce:function(doc,value){
          value.user = doc.user; 
          value.order_count++;
          return value;
      },
      initial:{
      order_count:0,user:0
      },
      finalize:function(res){
      }
      })  
      
      Show
      db.coll.insert({_id: 1, user: {id: 1016, name: "jack" }}) db.coll.insert({_id: 2, user: {id: 1017, name: "rose" }}) db.getCollection( "coll" ).group({     key:{ 'user.id' :1}, reduce: function (doc,value){     value.user = doc.user;      value.order_count++;      return  value; }, initial:{ order_count:0,user:0 }, finalize: function (res){ } })  
    • Platforms 12 (04/01/16)

      group failed : Command failed with error 139: 'Failure to enumerate object'

      3.2 not work, but 3.0 works

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            zyd_com@126.com Zhang Youdong
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: