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

Duplicate 'ns' field in the DurableCatalog

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Catalog, Storage
    • None
    • Storage Execution

      While working on SERVER-41746 I noticed that it was impossible to insert collection names with a length of >= ~8MB. When a new entry is added into the DurableCatalog, we append the 'ns' field twice here.

      {
          ns: <String>,
          ...
          md: {
              ns: <String>,
              ...
          },
          ...
      }
      

      With a collection name that is <= ~8MB, that quickly brings us up to our 16MB BSON document limit.
      Removing one of these fields would lower the cost of having to maintain both the fields whenever a namespace change occurred and allows the insertion of even longer collection names.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: