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

Demand notification could be duplicate and out-of-order

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.CR1
    • None
    • None
    • None

      The addDemand/removeDemand notifications should be reviewed and fixed.
      A few examples:

      • a sequence of setMode(Mode.ACTIVE), setMode(Mode.NEVER), setMode(Mode.ACTIVE), could generate a removeDemand() notification to dependencies followed by a double sequence of addDemand(). The correct would be addDemand(), removeDemand() and addDemand(), in that order
      • if going from ON_DEMAND or PASSIVE mode with demandedByCount > 0 to ACTIVE mode, the service will send an addDemand notification, although the service has already notified its dependencies before when demandedByCount went from 0 to 1. Thus, we have a double addDemand notification being sent to dependencies

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

              Created:
              Updated:
              Resolved: