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

Disallow balancer moveCollection commands that would move collections with views outside the dbPrimary

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing

      There is a performance issue that causes collections with views to have substantially decreased performance if the collection lives on a different shard than the view. This isn't currently an issue for unsharded collections because all collections and views live on the dbPrimary.

      However, once the balancer starts moving unsharded collections, it could be possible that the balancer chooses to move a collection with a view to a shard other than the dbPrimary. We should not allow this because it would reduce the performance on this view.

      Because the balancer is located on the config server and so does not know which collections have views, it will be the responsibility of the shard donating the collection to check before beginning the moveCollection command and throw an error if the collection has a view and the destination shard is not the dbPrimary.

            Assignee:
            backlog-server-catalog-and-routing [DO NOT USE] Backlog - Catalog and Routing
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: