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

Progressively declining dropDatabase performance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.3, 3.6.4
    • Fix Version/s: 3.6.9, 4.0.1, 4.1.1
    • Component/s: Replication, Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Storage NYC 2018-05-21, Storage NYC 2018-06-04, Storage NYC 2018-06-18

      Description

          for (var j = 0; j < 20; j++) {
              for (var i = 0; i < 1000; i++) {
                  db["c"+i].insert({})
              }
              t = new Date()
              db.dropDatabase()
              print(new Date() - t)
          }
      

      Time required for dropDatabase progressively increases on each iteration, for example, with a 1-node replica set:

      The performance also starts off worse than 3.4.10.

      Does not reproduce standalone.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                20 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: