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

leak in initRsOplogBackgroundThread

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 3.0.0
    • WiredTiger
    • None
    • Fully Compatible
    • ALL
    • Hide

      Build with address sanitizer. Run replicaset tests (e.g., dbtest) with storageEngine=wiredTiger

      Show
      Build with address sanitizer. Run replicaset tests (e.g., dbtest) with storageEngine=wiredTiger

    Description

      AddressSanitizer detects a leak of the background job to manage oplogs in replicasets

      Fix:

      diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp
      --- a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp
      +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp
      @@ -59,7 +59,7 @@ namespace mongo {
               class WiredTigerRecordStoreThread : public BackgroundJob {
               public:
                   WiredTigerRecordStoreThread(const NamespaceString& ns)
      -                : _ns(ns) {
      +                : BackgroundJob(true), _ns(ns) {
                       _name = std::string("WiredTigerRecordStoreThread for ") + _ns.toString();
                   }
      

      Attachments

        Activity

          People

            geert.bosch@mongodb.com Geert Bosch
            michael.cahill@mongodb.com Michael Cahill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: