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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.2.3
    • Fix Version/s: None
    • Component/s: JavaScript, Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      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){ } })  
    • Sprint:
      Platforms 12 (04/01/16)

      Description

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

      3.2 not work, but 3.0 works

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jonathan.reams Jonathan Reams
              Reporter:
              zyd_com Youdong Zhang
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: