Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2547

UNICAST3: loop back messages to self

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 5.1.6
    • None
    • None
    • False
    • False
    • Undefined

      When sending a unicast message to self (dest == local address), unless it's DONT_LOOPBACK, we can simply loop it back up on the same thread. This means, we're not assigning it a sequence number, and forfeit retransmission (it is delivered on the same thread, so no need to retransmit).

      There is no defined ordering though, but the same holds e.g. for 100 threads sending messages: the order of the threads getting seqnos assigned is random (first-come-first-served).

      Some protocols (e.g. merging) fail, so we need to investigate this.

      Question: why not loop back higher up the stack, e.g. in the JChannel directly?

      Whatever the solution is, this needs to be enabled by an attribute (loopback?). The default should be false.

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: