[jboss-jira] [JBoss JIRA] Commented: (JGRP-444) RequestCorrelator does not respect FLUSH.FlushHeader.BYPASS_FLUSH
Michael Newcomb (JIRA)
jira-events at lists.jboss.org
Fri Mar 30 21:49:09 EDT 2007
[ http://jira.jboss.com/jira/browse/JGRP-444?page=comments#action_12357992 ]
Michael Newcomb commented on JGRP-444:
--------------------------------------
We are using JGroups for a distributed map/grid. So, when members join/leave the group, I want to redistribute their data to the rest of the grid. I need to restrict all access during this time so I use a Channel.startFlush and Channel.stopFlush. When a member leaves, they request a Channel.startFlush, push their local data to the rest of the grid (with a flush bypass message), do a Channel.stopFlush, then leave the group.
Is Channel.startFlush and Channel.stopFlush more of an internal api?
> RequestCorrelator does not respect FLUSH.FlushHeader.BYPASS_FLUSH
> -----------------------------------------------------------------
>
> Key: JGRP-444
> URL: http://jira.jboss.com/jira/browse/JGRP-444
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 2.5
> Environment: 2.5 alpha 2
> Reporter: Michael Newcomb
> Assigned To: Vladimir Blagojevic
> Fix For: 2.5
>
>
> private void handleRequest(Message req, Header hdr)
> {
> ...
> rsp=req.makeReply();
> if(rsp_buf != null)
> rsp.setBuffer(rsp_buf);
> rsp_hdr=new Header(Header.RSP, hdr.id, false, name);
> rsp.putHeader(name, rsp_hdr);
> // *************** patch *****************
> // can't check for FLUSH.FlushHeader.BYPASS_FLUSH because it has package protection, so just check for FLUSH header
> //
> if (req.getHeader(org.jgroups.protocols.pbcast.FLUSH.NAME) != null)
> {
> rsp.putHeader(org.jgroups.protocols.pbcast.FLUSH.NAME,
> new org.jgroups.protocols.pbcast.FLUSH.FlushHeader(org.jgroups.protocols.pbcast.FLUSH.FlushHeader.FLUSH_BYPASS));
> }
> // *************** patch *****************
> if(log.isTraceEnabled())
> log.trace(new StringBuffer("sending rsp for ").append(rsp_hdr.id).append(" to ").append(rsp.getDest()));
> ...
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list