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

Race condition in Scala wrapper's FlatMapObservable

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Scala

      Call sequence that leads to the incorrect behavior

      A: Observer[S]#onComplete
      A: nestedSubscription = None
      B: Observer[T]#onComplete
      B: onCompleteCalled == false => B: onCompleteCalled = true
      B: nestedSubscription.isEmpty == true => B: observer.onComplete()
      A: onCompleteCalled == true => A: observer.onComplete
      

      Failing test with reproduction: pr/761 (fails on master, passes on the linked branch)

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            rmn.tk.ml@gmail.com Roman Tkalenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: