Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 55080 invoked from network); 10 Feb 2011 16:50:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Feb 2011 16:50:24 -0000 Received: (qmail 45328 invoked by uid 500); 10 Feb 2011 16:50:23 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 45072 invoked by uid 500); 10 Feb 2011 16:50:21 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 45063 invoked by uid 99); 10 Feb 2011 16:50:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 16:50:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [72.22.94.67] (HELO virtual.halosg.com) (72.22.94.67) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 16:50:12 +0000 Received: (qmail 17931 invoked from network); 10 Feb 2011 10:49:51 -0600 Received: from c-98-245-245-160.hsd1.co.comcast.net (HELO ?10.1.10.166?) (98.245.245.160) by halosg.com with (AES256-SHA encrypted) SMTP; 10 Feb 2011 10:49:51 -0600 Message-ID: <4D54172F.8000302@hanik.com> Date: Thu, 10 Feb 2011 09:49:51 -0700 From: Filip Hanik - Dev Lists User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: svn commit: r1068989 - /tomcat/trunk/java/org/apache/catalina/tribes/group/RpcChannel.java References: <20110209173925.00A6623888FE@eris.apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I will fix it. Reattempt is managed in the channel itself at a much lower level. That has always been the case. Adding reattempt here is ambiguous, so I will readjust the interface to return void. best Filip On 2/10/2011 3:36 AM, Konstantin Kolinko wrote: > 2011/2/9: >> Author: fhanik >> Date: Wed Feb 9 17:39:24 2011 >> New Revision: 1068989 >> >> URL: http://svn.apache.org/viewvc?rev=1068989&view=rev >> Log: >> https://issues.apache.org/bugzilla/show_bug.cgi?id=50667 >> Move the callback outside try/catch to avoid duplicate callbacks >> > I do not quite get it. > > JavaDoc comment for ExtendedRpcCallback#replyFailed(..) says > @return true if the callback would like to reattempt the reply, false otherwise > > In this code returning true will result in falling through and just a > duplicate call to the handler, now reporting success: > excallback.replySucceeded(rmsg.message, reply, sender); > > I do not see any "reattempt" here. > > Best regards, > Konstantin Kolinko > >> Modified: >> tomcat/trunk/java/org/apache/catalina/tribes/group/RpcChannel.java >> Modified: tomcat/trunk/java/org/apache/catalina/tribes/group/RpcChannel.java >> URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/RpcChannel.java?rev=1068989&r1=1068988&r2=1068989&view=diff >> ============================================================================== >> --- tomcat/trunk/java/org/apache/catalina/tribes/group/RpcChannel.java (original) >> +++ tomcat/trunk/java/org/apache/catalina/tribes/group/RpcChannel.java Wed Feb 9 17:39:24 2011 >> @@ -158,9 +158,6 @@ public class RpcChannel implements Chann >> channel.send(new Member[] {sender}, rmsg,replyMessageOptions& ~Channel.SEND_OPTIONS_SYNCHRONIZED_ACK); >> } >> finished = true; >> - if (excallback != null&& !asyncReply) { >> - excallback.replySucceeded(rmsg.message, reply, sender); >> - } >> }catch ( Exception x ) { >> if (excallback != null&& !asyncReply) { >> finished = !excallback.replyFailed(rmsg.message, reply, sender, x); >> @@ -169,6 +166,9 @@ public class RpcChannel implements Chann >> log.error("Unable to send back reply in RpcChannel.",x); >> } >> } >> + if (finished&& excallback != null&& !asyncReply) { >> + excallback.replySucceeded(rmsg.message, reply, sender); >> + } >> } >> }//end if >> } >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: dev-help@tomcat.apache.org >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1204 / Virus Database: 1435/3434 - Release Date: 02/10/11 > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org