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

In sharded cluster, can't read from view whose pipeline has $collStats and is a view on another view

    XMLWordPrintable

    Details

    • Operating System:
      ALL
    • Backport Requested:
      v3.4
    • Sprint:
      Query 2016-12-12

      Description

      In a sharded configuration, users cannot query a view if its backing namespace is also a view and its pipeline contains $collStats. More concretely,

      db.createView("firstView", "somethingElse", []);
      db.createView("collStatsView", "firstView", [ { $collStats: {} } ]);
      

      All queries against collStatsView incorrectly fail with "command not supported on view".

      This bug does not affect views that don't have $collStats in their pipelines. It also does not affect views whose pipelines contain $collStats but have a collection as their backing namespace.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team (Inactive)
              Reporter:
              kyle.suarez Kyle Suarez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: