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

Creating large arrays of embedded documents causes blocking on secondaries.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 2.2.3
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Environment:
      linux
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      use test;
      for(t = 0; t < 10000; t++){
      db.embedded_doc.insert({_id :t});
      for(i = 0; i < 10000; i++){
      db.embedded_doc.update({_id : t}, { $push : { test_array :

      { field1 : "VALUE", field2 : i }

      } });
      }
      }

      Show
      use test; for(t = 0; t < 10000; t++){ db.embedded_doc.insert({_id :t}); for(i = 0; i < 10000; i++){ db.embedded_doc.update({_id : t}, { $push : { test_array : { field1 : "VALUE", field2 : i } } }); } }

      Description

      When adding large arrays of embedded documents replication becomes blocked on secondaries. This is causing queues on the slave and timouts to slaveOk() queries comming from a php driver.

      I am wondering if this could be related to SERVER-2771 as I read somewhere that indexes are created on arrays. I could not find any corroborating information.

        Attachments

          Activity

            People

            Assignee:
            stennie Stennie Steneker
            Reporter:
            robert.jobson@dominionenterprises.com Robert Jobson
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: