Uploaded image for project: 'Modular Service Container'
  1. Modular Service Container
  2. MSC-37

OptionalDependency sends dependentStopped notification without a corresponding dependentStarted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta5
    • 1.0.0.Beta4
    • None
    • None
    • Workaround Exists
    • Hide

      Only notify of dependentStopped if dependentStarted has been notified before.

      Show
      Only notify of dependentStopped if dependentStarted has been notified before.

      A "dangling" dependentStopped notification is sent from OptionalDependency on some multi-thread scenarios. This will happen if forwardNotification become true as the result of a removeDemand call that is performed before dependentStopped. In this case, OptionalDependency will notify of a dependentStopped without having ever notified the dependency of a dependentStarted, creating an inconsistency in ServiceInstanceImpl.

              flaviarnn Flavia Rainone
              flaviarnn Flavia Rainone
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: