[jboss-jira] [JBoss JIRA] (JGRP-1542) RELAY2: preserve messages flags when forwarding / routing / delivering messages
Bela Ban (JIRA)
jira-events at lists.jboss.org
Thu Nov 22 12:18:21 EST 2012
[ https://issues.jboss.org/browse/JGRP-1542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12736481#comment-12736481 ]
Bela Ban commented on JGRP-1542:
--------------------------------
This can lead to the following issue:
- When sending a sync RPC from site A to site B, the RPC message would be marked as DONT_BUNDLE (or OOB) (Infinispan)
- The bridge transport between sites A and B, however, doesn't copy the flags and therefore sends the message *bundled* !
- This can add up to 60ms to a sync RPC (max_bundle_timeout=30) !
JGRP-1542 fixes this issue
> RELAY2: preserve messages flags when forwarding / routing / delivering messages
> -------------------------------------------------------------------------------
>
> Key: JGRP-1542
> URL: https://issues.jboss.org/browse/JGRP-1542
> Project: JGroups
> Issue Type: Enhancement
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Minor
> Fix For: 3.3
>
>
> When forwarding a message to the local site master, routing a message from the site master over the bridge to a remote site master and delivering a message received from a remote site master in the local site, the original message M is marshalled into a byte buffer and tucked into a new message M'.
> However, M' does *not* copy the flags of M. So, for instance, if M was tagged as OOB, M' won't be OOB, therefore forwarding, routing and delivering locally won't be done on the OOB thread pool. Only when M' is unpacked, then M will have the original flags preserved.
> SOLUTION:
> Copy the flags of the original message into the wrapping message used to forward, route and deliver the original message.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list