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

Test command relation invariants for change streams

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Execution

    Description

      Add a new resmoke hook, which opens the change stream at the end of the test and checks general truths. This way, we are relying on the diversity of our tests to provide interesting sequences of commands issued to construct various edge case scenarios. This could potentially prevent bugs like SERVER-61026 from happening.

      An example of an illegal sequence of events such a hook could potentially detect: “create (shard A), shardCollection (shard A), drop (shard A), create (shard A), insert (shard A), drop (shard B)”. Note how create and insert events from shard A happen before the drop event from shard B.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            nikita.lapkov@mongodb.com Nikita Lapkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: