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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding, Tools
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-sharding Backlog - Sharding Team
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: