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

XMLWordPrintableJSON

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

      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 Studer (Inactive)
              Reporter:
              Kevin Francis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: