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

Use failpoint to check whether tenantId is required in TenantNamespace

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Server Serverless 2022-01-10

    Description

      A few existing security tests use the supportMultitenancy parameter already, and when run on the all feature flags variants will crash when constructing a TenantNamespace because featureFlagRequireTenantId is enabled, but not all callers will have the tenantId available to them yet. Change the check in the TenantNamespace constructor to check whether a failpoint is enabled rather than the feature flag for now. Once the work to always set the tenantId on the opCtx and to add tenantId to oplog entries is done, we can switch back to using the feature flag.

      Attachments

        Activity

          People

            janna.golden@mongodb.com Janna Golden
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: