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

server crashes whene mapReduce query with $ne

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.2
    • Component/s: None
    • None
    • Program Management
    • ALL

      When I execute this script the server crashes:

      use test_db;
      db.test_col.insert({value: 1});
      db.test_col.insert({value: 2});
      
      var mapF =  function () { emit(this.value, {count: 1}) };
      var reduceF = function(key, values) {
              var result = {count: 0};
              values.forEach(function(value) {
                result.count += value.count;
              });
              return result;
            };
      
      db.test_col.mapReduce(
          mapF, reduceF,
          {
              query: { value: {$ne: 1}},
              out: "inline"
          }
          );
      

       

            Assignee:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Reporter:
            jakub.wozny@gmail.com Jakub Wozny
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: