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

Sending BatchMessage without setting orig_src silently fails to other node but works to same node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 5.4, 5.3.7
    • None
    • None
    • False
    • None
    • False
    • Low

      When I do the following:

      1. Have a cluster of 2 nodes.
      2. Create a BatchMessage on node 1.
      3. Do not set orig_src
      4. Send it to all members (destination null)

      Then:

      1. Node 1 (sender) receives it ok
      2. Node 2 (other) does not receive it
      3. I believe it is BatchMessage.size() that explodes with an NPE, but there is no log on any level on node 1 or 2 indicating something has gone wrong.

      My first expectation was that orig_src is optional and does not need to be set, or that it's populated automatically (like sender in BaseMessage).

      If it needs to be explicitly set then at least I would have expected a log somewhere indicating that the message could not be sent.

      Tested with 5.3.5

       

            rhn-engineering-bban Bela Ban
            cfredri4 Christian Fredriksson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: