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

AbstractSubscription implementations need to track completed

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.0
    • Affects Version/s: 3.0.4
    • Component/s: Async
    • None

      As multiple requests for data can occur before data is available, then implementations of AbstractSubscription must handle when the Subscriptions completed state.

      Currently, completed defaults to true - so there is a race condition on multiple calls to request between the requesting initial data and then the processing of results that looks at the completed state. If results haven't come in it shortcuts to calling onComplete.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: