Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-231

Router should not issue credit for unavailable targets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5
    • 0.6.0
    • Router Node
    • None

    Description

      When a client creates a sending link to a target, the router accepts the link on behalf of the target, and issues credit.

      This happens even if the target is unknown (eg. no consumers exist).

      In this case, the client will send a bunch of messages that simply stall or are released.

      As an alternative, the router should only issue credit if the target is available.
      Specifically:

      1 - on attach, do not issue credit if the target is not available
      2 - if the target goes away, stop issuing additional credit

      #2 can result in in-flight messages being left in limbo. In this case, it is acceptable to drop those messages that have been sent pre-settled, and release those messages sent unsettled. Ideally, the router would hold on to these messages for a short time (TTL?) and re-send if the target becomes available in that time.

      Attachments

        Issue Links

          Activity

            People

              tross Ted Ross
              kgiusti Ken Giusti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: