Avoid too long db name in multitenancy environment

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Server Serverless 2023-06-26, Server Serverless 2023-07-10
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In multitenancy environment, the db name on disk looks like "<tenantId><db>" if tenant prefix exists.  The length of db name should not only include db string size but also include the tenant prefix size and the "".  So, when we validate the db name length in mongod, we should calculate the db name size in the right way. 

      In this ticket, we should change the code of database_impl.cpp and database_name.h.  We should also change the jstest files in which the db name is too long (> 38 characters = 63 (max len) - 24 (tenant id string len) - 1).

            Assignee:
            Sophia Tan (Inactive)
            Reporter:
            Sophia Tan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: