Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-2581

Perform reloads with strong consistency

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.15
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      In our production setup we noticed that calling reload after saving changes to a document would often result in the document as it was prior to the changes, because the document would be loaded from one of the secondary nodes. This pull request changes the reload method to always execute with strong consistency to ensure a reload always pulls in the latest version.

      I'm not sure how I could modify the tests to verify that strong consistency is used when reloading, the existing specs do still pass of course.

            Assignee:
            Unassigned Unassigned
            Reporter:
            mkremer mkremer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: