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

The user cache invalidator invarianting in it's dtor decreases debuggability

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1, 4.2.2
    • None
    • Security
    • None
    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Security 2019-10-21

    Description

      The user cache invalidator currently invariant's in its dtor.  See

      UserCacheInvalidator::~UserCacheInvalidator() {
            invariant(globalInShutdownDeprecated());
            // Wait to stop running.
            wait();
      }
      

      The problem with this is that we make a UserCacheInvalidator in runMongosServer as part of mongos' startup. And then if anything goes wrong, before global shutdown, we crash in that invariant. That prevents us from returning an error code, letting an exception with a stack bubble up, etc.

      Attachments

        Activity

          People

            spencer.jackson@mongodb.com Spencer Jackson
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: