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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1, 4.2.2
    • Affects Version/s: None
    • Component/s: Security
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Security 2019-10-21

      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.

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

              Created:
              Updated:
              Resolved: