[jboss-jira] [JBoss JIRA] (JGRP-2142) RequestCorrelator broadcasts message instead of sending an unicast

Pedro Ruivo (JIRA) issues at jboss.org
Thu Dec 8 08:53:00 EST 2016


    [ https://issues.jboss.org/browse/JGRP-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13335963#comment-13335963 ] 

Pedro Ruivo commented on JGRP-2142:
-----------------------------------

hmmm I think I found a bug in my RequestOptions that makes the RequestCorrelator send a multicast instead of 2 unicasts.
I'll close this JIRA :)

Thanks Bela.

> RequestCorrelator broadcasts message instead of sending an unicast
> ------------------------------------------------------------------
>
>                 Key: JGRP-2142
>                 URL: https://issues.jboss.org/browse/JGRP-2142
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Pedro Ruivo
>            Assignee: Bela Ban
>             Fix For: 4.0
>
>
> The first message sent has the destination field initialized with null. In result, the first message is broadcasted. The destination must be set.
> In here: https://github.com/belaban/JGroups/blob/master/src/org/jgroups/blocks/RequestCorrelator.java#L161
> Code:
> {{Message copy=(first? msg : msg.copy(true)).dest(mbr);}}
> Possible fix:
> {{Message copy=(first? msg.dest(mbr) : msg.copy(true)).dest(mbr);}}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list