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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Works as Designed
    • None
    • None
    • Sharding, Tools

    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

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

              Dates

                Created:
                Updated:
                Resolved: