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

FindAndModify not working after crash of secondary servers

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.4.1
    • None
    • None

    Description

      I have a program that has been running perfectly for over 8 months using both mongodb 2.2 series and lately v2.4.1. I have 3 mongodb servers configured in a replicaset with authentication enabled and replication working. Life was good!

      Until today.

      All of a sudden BOTH the SECONDARY servers in the replicaset crash with segmentation faults at the same time!

      After restarting the servers and relaunching my app, I noticed a very strange behaviour that I have no idea of how to fix:

      The app can connect to the replicaset, and authenticate.
      The app can query data using find().
      The app can NOT succesfully run a findAndModify() command any more. It always returns nothing/null/zip/nada...

      I have not done any changes to the code since it was working and I have ran the query I use for "findAndModify()" in the shell (using findOne()) and it returns the expected document.

      The logs looks perfectly normal, except for the following entry that seems to coincide with when my application tries to do a findAndModify():

      command denied:

      { replSetGetStatus: 1 }

      Any ideas what is wrong and/or how to troubleshoot it?

      Attachments

        Activity

          People

            Unassigned Unassigned
            morfj Morten Fjeldstad
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: