Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 50894 invoked from network); 24 Jan 2008 07:25:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jan 2008 07:25:46 -0000 Received: (qmail 76976 invoked by uid 500); 24 Jan 2008 07:25:35 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 76934 invoked by uid 500); 24 Jan 2008 07:25:35 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 76923 invoked by uid 99); 24 Jan 2008 07:25:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2008 23:25:35 -0800 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,URIBL_BLACK X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of afkham@gmail.com designates 72.14.220.157 as permitted sender) Received: from [72.14.220.157] (HELO fg-out-1718.google.com) (72.14.220.157) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jan 2008 07:25:08 +0000 Received: by fg-out-1718.google.com with SMTP id e21so126723fga.14 for ; Wed, 23 Jan 2008 23:25:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=6nwFAcJXOfjaiKREiuwBu7IqLEiIJRgkL3sdNrOGzM0=; b=lkqfAAiQv+fpw4sBAffWcxBenqXRKywev+orXZZ8e32kYl4YFkLxoNat4oZaBukSvhnTgDSuHt+6b4AK9a5Rtw6ROBSxnJPmgce8JbvRCpbqpGR2yKutTpSS66Onqj85taQa+Lt8aKyYmYZiY/Byx5FR28TowoBtMxJAnpD3Vmg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=lhUURYzb0XVbEL/IZA9gcjz6WAW2+7ouyRk7e10UjKFDrI0F9bxDEbr3lFNgOqWucW6zAWjCh9oT1iHsWvUF0VVafZ5YfpmXiNTwwEcP5CJlziOcu+pFzRE94s/V/KP7l3UQwON56zcw2Wq2f24wmIBNA24fhiKXuTaXZnalolM= Received: by 10.86.77.5 with SMTP id z5mr345149fga.5.1201159513367; Wed, 23 Jan 2008 23:25:13 -0800 (PST) Received: by 10.86.23.13 with HTTP; Wed, 23 Jan 2008 23:25:13 -0800 (PST) Message-ID: <9b85c45f0801232325l3eb052b1ue71d844cbc596f50@mail.gmail.com> Date: Thu, 24 Jan 2008 12:55:13 +0530 From: "Afkham Azeez" To: dims@apache.org Subject: Re: svn commit: r614657 - in /webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes: TribesClusterManager.java TribesUtil.java Cc: axis2-cvs@ws.apache.org, axis-dev@ws.apache.org In-Reply-To: <20080123204325.CDF4A1A9832@eris.apache.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24666_1924512.1201159513361" References: <20080123204325.CDF4A1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_24666_1924512.1201159513361 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Dims, member.getName() in Tribes tries to do a reverse DNS lookup. On some boxes which this is not properly configured, this causes the instance to hang. You will see this when you have no NW connectivity and are doing a multicast using the local interface i.e. "route add -net 224.0.0.0 netmask 240.0.0.0dev lo" See Filip's commit to Tribes, http://svn.apache.org/viewvc?view=rev&revision=612192 Thanks Azeez On Jan 24, 2008 2:13 AM, wrote: > Author: dims > Date: Wed Jan 23 12:43:23 2008 > New Revision: 614657 > > URL: http://svn.apache.org/viewvc?rev=614657&view=rev > Log: > fix trailing . in the ip address, add a log.info as well > > Modified: > > webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java > > webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesUtil.java > > Modified: > webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java > URL: > http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java?rev=614657&r1=614656&r2=614657&view=diff > > ============================================================================== > --- > webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java > (original) > +++ > webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java > Wed Jan 23 12:43:23 2008 > @@ -276,6 +276,7 @@ > membershipManager.getLongestLivingMember() : > // First try to get from the longest member alive > membershipManager.getRandomMember(); // Else > get from a random member > String memberHost = TribesUtil.getHost(member); > + log.info("Trying to send to : [" + member.getName() + "][" + > memberHost + "]"); > try { > if (!sentMembersList.contains(memberHost)) { > Response[] responses = rpcChannel.send(new > Member[]{member}, > > Modified: > webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesUtil.java > URL: > http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesUtil.java?rev=614657&r1=614656&r2=614657&view=diff > > ============================================================================== > --- > webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesUtil.java > (original) > +++ > webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesUtil.java > Wed Jan 23 12:43:23 2008 > @@ -49,7 +49,10 @@ > if (hostBytes != null) { > for (int i = 0; i < hostBytes.length; i++) { > int hostByte = hostBytes[i] >= 0 ? (int) hostBytes[i] : > (int) hostBytes[i] + 256; > - host.append(hostByte).append("."); > + host.append(hostByte); > + if(i < hostBytes.length-1) { > + host.append("."); > + } > } > } > return host.append(":").append(member.getPort()).toString(); > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-cvs-help@ws.apache.org > > -- Thanks Afkham Azeez http://azeez78.blogspot.com http://www.wso2.org GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760 ------=_Part_24666_1924512.1201159513361 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Dims,
member.getName()  in Tribes tries to do a reverse DNS lookup. On some boxes which this is not properly configured, this causes the instance to hang. You will see this when you have no NW connectivity and are doing a multicast using the local interface i.e. "route add -net 224.0.0.0 netmask 240.0.0.0 dev lo"

See Filip's commit to Tribes, http://svn.apache.org/viewvc?view=rev&revision=612192

Thanks
Azeez

On Jan 24, 2008 2:13 AM, <dims@apache.org> wrote:
Author: dims
Date: Wed Jan 23 12:43:23 2008
New Revision: 614657

URL: http://svn.apache.org/viewvc?rev=614657&view=rev
Log:
fix trailing . in the ip address, add a log.info as well

Modified:
   webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java
   webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesUtil.java

Modified: webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java?rev=614657&r1=614656&r2=614657&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java (original)
+++ webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java Wed Jan 23 12:43:23 2008
@@ -276,6 +276,7 @@
                            membershipManager.getLongestLivingMember() : // First try to get from the longest member alive
                            membershipManager.getRandomMember(); // Else get from a random member
            String memberHost = TribesUtil.getHost(member);
+            log.info("Trying to send to : [" + member.getName() + "][" + memberHost + "]");
            try {
                if (!sentMembersList.contains(memberHost)) {
                    Response[] responses = rpcChannel.send(new Member[]{member},

Modified: webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesUtil.java?rev=614657&r1=614656&r2=614657&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesUtil.java (original)
+++ webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesUtil.java Wed Jan 23 12:43:23 2008
@@ -49,7 +49,10 @@
        if (hostBytes != null) {
            for (int i = 0; i < hostBytes.length; i++) {
                int hostByte = hostBytes[i] >= 0 ? (int) hostBytes[i] : (int) hostBytes[i] + 256;
-                host.append(hostByte).append(".");
+                host.append(hostByte);
+                if(i < hostBytes.length-1) {
+                    host.append(".");
+                }
            }
        }
        return host.append(":").append(member.getPort()).toString();



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org




--
Thanks
Afkham Azeez

http://azeez78.blogspot.com
http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760 ------=_Part_24666_1924512.1201159513361--