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

Test readConcern level:snapshot on mongos

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Sharding
    • Sharding 2018-04-09

      readConcern:

      {level:snapshot}

      parsing has been already added to ReadConcernArgs,
      1. To src/mongo/s/strategy.cpp
      add code that verifies that level:snapshot is set in a command that is a part of at transaction.
      if not must return

      ErrorCodes::InvalidOptions

      error

      2. add a testcase to sharding suite that verifies that
      a) level:snapshot can be parsed by mongos
      b) level:snapshot is only allowed when there is a txnNumber and lsid - i.e its allowed only as a part of a transaction
      c) level:snapshot is permitted only for the find, aggregate, count, distinct commands. - this is not going to be checked on mongos but is verified on mongod with a supportsReadConcern call

      There are geoNear, group, geoSearch and parallelCollectionScan commands that may support it as well if it will be free but its not required.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: