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

add hooks to the mock storage engine to be able to expect reads and writes, similar to the mock network interface's onCommand*

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.5.8
    • Component/s: Sharding
    • Labels:
    • Sharding

      This becomes more relevant as sharding catalog operations move to being performed locally by the config server rather than over the network.

      While sharding catalog operations were performed by mongos against the config server, unit tests could use the mock network interface's "onCommand*" methods to "expect" (block and wait for) certain reads/writes to be sent over the network from mongos to the config server.

      Now that mongod performs these operations locally, it'd be nice to have a way to tell the mock storage engine to similarly "expect" read/write operations to be performed against it.

      It may also be a valuable feature for unit testing transactions and retriable writes local read/write logic.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: