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

Documents beings saved in the wrong collection

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Has anyone run into an issue where documents get stored in the wrong collection? I've reviewed my code several times and I know I'm not instantiating the wrong model for the document I want to store, besides, the issue doesn't appear to happen all the time and it's not consistent in which wrong collection the document goes to. So document A should be stored with collection A, but sometimes it gets saved with collection B or collection C.

      I'm running Mongoid under Redstorm (a Storm DSL for Jruby) and I do have multiple threads running.

      Any advice or help would be awesome! Let me know if you need more information.

      I'm using mongoid-3.1.6 with moped-1.5.1

      Thanks!

            Assignee:
            Unassigned Unassigned
            Reporter:
            rockyyost Rocky Yost
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: