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

Eliminate racy behavior in unified reactive change stream tests

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 5.1.1
    • Affects Version/s: None
    • Component/s: Test Improvement
    • None
    • Java Drivers
    • Not Needed
    • 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?

      Implement and integrate BatchCursorInterceptorSubscriber to wait for BatchCursor creation or to catch exceptions during aggregate operation, allowing us to uncomment and stabilize reactive streams tests affected by race conditions.

      Background:

      Investigations into race conditions during BatchCursor creation have led to an approach using BatchCursorInterceptorSubscriber and project reactor debugging tools, as seen in this commit: 9f469a62.

      Acceptance Criteria:

      • BatchCursorInterceptorSubscriber is fully integrated into the test suite.
      • Tests previously disabled due to race conditions are uncommented and pass successfully

            Assignee:
            slav.babanin@mongodb.com Slav Babanin
            Reporter:
            slav.babanin@mongodb.com Slav Babanin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: