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

Do not store field names with "." in any metadata collections

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Sharding, Tools
    • Sharding

      If you shard a collection with a key like {{

      {"a.b":1}

      }} the system stores that as a field name in various collections (collections, chunks, changelog and tags to name a few).

      This causes problems with backing up and restoring data or moving data to other databases (since these fields are invalid as user documents). It also means that the clients/driver and server has to special case these collections (or database) to disable regular validation (hence the problem moving this data to user collections).

      This is somewhat related to trying to copy the profiler documents (which have fields with $prefix or dots) to different collections.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: