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

Make ChangeStreamOperation tests more resilient

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: