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

produce (or allow to be produced programmatically) a list of top-level aggregation operators for easier declarative testing in sharding

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.7.3
    • Component/s: None
    • None
    • Query

      Sharding has several features that operate on all commands (or large swaths of commands):

      • safe secondary reads
      • shard and database versioning
      • causal consistency

      For several of these, we have declarative tests that define a test case for every command (from listCommands output) and check that the feature works correctly for that command.

      As query moves towards pushing more operations into aggregation, we lose coverage in these tests, since they do not define test cases for every possible initial aggregation stage.

      This is especially problematic because these aggregation stages often have special logic ($changeStreams, $listCollections, $currentOp come to mind), so just testing a simple "aggregate" is not enough.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: