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

server crashes whene mapReduce query with $ne

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 4.2.2
    • None
    • None
    • None
    • ALL

    Description

      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"
          }
          );
      

       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: