an empty database may be repeatedly, unnecessarily recloned

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

              if ( ctx.justCreated() || empty || incompleteClone ) {
                  // we must add to incomplete list now that setClient has been called
                  incompleteCloneDbs.insert( clientName );
                  if ( nClonedThisPass ) {
      

      An empty database can potentially be recloned unnecessarily, as we always reclone if we see an empty db. This can be seen when the profile1.js test is run in small oplog mode. This test repeatedly drops profile1.system.profile, causing the slave to attempt to apply an op for the empty db 'profile1' (the op is a command so registered in namespace profile1.$cmd).

      <http://buildbot.mongodb.org/builders/Linux%2064-bit%20DUR%20OFF/builds/879/steps/test_2/logs/stdio>

            Assignee:
            Unassigned
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: