Fix TestCausalConsistencyExamples test

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      The TestCausalConsistencyExamples test currently fails on at least one task most of the time. Re-enable it if it's skipped and fix the test.

      The failures seem to happen only on MongoDB v4.0 sharded clusters.

      E.g. failure:

      examples_test.go:124:
          	Error Trace:	examples_test.go:124
          	Error:      	Received unexpected error:
          	            	write exception: write errors: [no progress was made executing batch write op in test.items after 5 rounds (0 ops completed in 6 rounds total)]
          	Test:       	TestCausalConsistencyExamples
      

      Lobster

      E.g. failure message with added logging:

      session error: InsertOne error: write exception: write errors: [no progress was made executing batch write op in test.items after 5 rounds (0 ops completed in 6 rounds total)]
      

      Suggests the error is coming from the InsertOne call on examples.go#L2561.

            Assignee:
            Qingyang Hu
            Reporter:
            Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: