Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1412

Fix test failures when retryable writes are enabled

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0alpha3, 1.6.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      By upgrading libmongoc to 1.15-dev, retryable writes may now be enabled by default. Retryable writes are not compatible with writes to an unreplicated collection, which leads to failures in tests that write to the local collection:

      • tests/replicaset/manager-selectserver-001.phpt
      • tests/replicaset/writeresult-getserver-002.phpt
      • tests/server/server-executeBulkWrite-005.phpt

      If possible, these tests should be changed to use a regular collection. Otherwise, we should either skip them if retryable writes is enabled or force retryWrites to false when constructing the Manager object.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: