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

Build collMod unit tests that work with gFeatureFlagRequireTenantID=false

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Serverless

      We are building tests for collMod in op_applier_impl_test.cpp, and while this works for the cases where gFeatureFlagRequireTenantID=true, this doesn't currently work for gFeatureFlagRequireTenantID=false because the CollMod::parse() function builds the _dbName object first, then uses this to build the _nss object.  This means we don't benefit from the gFeatureFlagRequireTenantID-sensitive serializr/deserializer functions, and the tenantId remains prefixed onto the dbstring.

      Either a change to how the collMod parser idl is defined is needed, or we need to add DatabaseName serializer/deserializer functions.  We should be able to use the existing collMod test as a template once this is complete.

            Assignee:
            backlog-server-serverless [DO NOT USE] Backlog - Server Serverless (Inactive)
            Reporter:
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: