Fix test failures for sharded cluster without replica set

XMLWordPrintableJSON

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

      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.

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: