Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2456

test_bulk_write should have different behaviors depending on server version

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      In test-mongoc-command-monitoring.c, test_bulk_write runs a bulk operation and then checks to see if the events BSON matches the expected events object in bulkWrite.yml and bulkWrite.json.

      In the expected output, we expect a

      { "reply": "ok" }

      for both acknowledged and unacknowledged writes. This is only correct when interacting with server versions below 3.6.

      Starting in 3.6, we use OP_MSG to handle wc: 0 and should no longer expect a server reply.

      We should add a flag in bulkWrite.yml and bulkWrite.json that indicates whether or not we should be using OP_MSG so that we can skip tests accordingly.

            Assignee:
            Unassigned Unassigned
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: