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

Fix test failures when retryable writes are enabled

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0, 1.6.0alpha3
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: