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

SERIALIZE loses transient flags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.4, 5.3.8
    • None
    • None
    • False
    • None
    • False
    • Low

      When down-method of SERIALIZE creates a new message it puts the serialized headers in the payload and copies the flags. However, it doesn't copy transient flags. We are trying to use TransientFlag DONT_LOOPBACK but since we are also using SERIALIZE, the transient flag gets lost before the message reaches TP. This causes  TP to loop back the message even if the original message had DONT_LOOPBACK set. We can set discard_own_messages on the Channel so we don't receive the loop back. However, before that the loop back goes up the stack which  messes up the message statistics. The looped back messages are included in the received bytes.

      Of course, we can easily fix this by replacing SERIALIZE with our own implementation. However, I was wondering whether this is a bug in SERIALIZE or an intentional feature, 

      regards,

      Antti

              rhn-engineering-bban Bela Ban
              anttikerola Antti Kerola (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: