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

Fix test failures for sharded cluster without replica set

    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

      This build failure for PHPC-1369 is likely related to retryable writes being enabled by default but the sharded cluster not using a replica sets. Many tests failed with the following unexpected error:

      Transaction numbers are only allowed on a replica set member or mongos

      Since libmongoc only communicates with mongos, it doesn't detect that the cluster doesn't actually support transaction numbers. We can either remove the SHARDED_CLUSTER environment or manually work around the issue by explicitly disabling retryable writes for that environment.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: