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

AbstractSubscription implementations need to track completed

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.0
    • 3.0.4
    • Async
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: