Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3742

Make ChangeStreamOperation tests more resilient

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.12.5, 4.0.4, 4.1.0
    • Affects Version/s: None
    • Component/s: Test Coverage
    • None

      ChangeStreamOperationSpecification tests fail occasionally because they assume that expected documents will be returned by the server in a single batch, even though the server makes no such guarantees (and in practice, does not behave consistently in this regard in single-sharded clusters).

      The tests should be made more resilient by removing the assumption about single batches and instead combining multiple batches until the expected number of change stream documents have been received.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: