Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2238

Fix TestCausalConsistencyExamples test

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: 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:
            Unassigned Unassigned
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: