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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.8.2, 1.9.0
    • 1.8.3, 1.9.1
    • Geo, Replication
    • Ubuntu 11.04, EC2 micro instance
    • Linux

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: