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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.8.2, 1.9.0
    • Fix Version/s: 1.8.3, 1.9.1
    • Component/s: Geo, Replication
    • Labels:
    • Environment:
      Ubuntu 11.04, EC2 micro instance
    • Operating System:
      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

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

              Dates

              Created:
              Updated:
              Resolved: