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

FTDCControllerTest LogAndTerminateWhenCollectionFails causes unittest::TempDir to be leaked due to permission error

    • Type: Icon: Engineering Test Engineering Test
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Networking & Observability

      The permissions for the directory are not restored after the FTDC thread throws an exception. The cleanup from the unittest::TempDir::~TempDir() destructor logs a permission denied error but continues.

      // Remove RW permissions from the directory to force the FTDC thread to throw.
      boost::filesystem::permissions(dir(), boost::filesystem::no_perms);
      

      https://github.com/mongodb/mongo/blob/af78ce10f41a0867decb8e93bfc3f23fcdd585d2/src/mongo/db/ftdc/controller_test.cpp#L494-L495

            Assignee:
            Unassigned Unassigned
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: