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

Geospatial index updates on replica servers on Ubuntu can crash the server

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.3, 1.9.1
    • Affects Version/s: 1.8.2, 1.9.0
    • Component/s: Geo, Replication
    • Labels:
    • Environment:
      Ubuntu 11.04, EC2 micro instance
    • Linux

      Given a newly set up server, configured to run in a replica set, the following steps in the mongo console will hang the server if running on Ubuntu:

      rs.initiate()
      <wait for the replica set>
      use bug
      db.map.ensureIndex(

      {loc:"2d"}

      )
      db.map.update({loc:{$near:[1.0,2.0],$maxDistance:3.0}, people:{$exists:true}}, {$set:

      {loc:[1.0,2.0]}

      , $push:{people:"chris"}}, true)

      At this point, the mongo database will become non-responsive and consume all available CPU. This appears to be an issue with the $set for the location being performed as an upsert from a distance query. Running on Windows or without a replica set does not appear to cause the problem.

            Assignee:
            greg_10gen Greg Studer
            Reporter:
            pinbender Kevin Francis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: