Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 50309 invoked from network); 22 Jul 2009 21:26:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jul 2009 21:26:32 -0000 Received: (qmail 9112 invoked by uid 500); 22 Jul 2009 21:27:38 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 9096 invoked by uid 500); 22 Jul 2009 21:27:37 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 9085 invoked by uid 99); 22 Jul 2009 21:27:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 21:27:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 21:27:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C9FE829A0015 for ; Wed, 22 Jul 2009 14:27:15 -0700 (PDT) Message-ID: <1105564810.1248298035826.JavaMail.jira@brutus> Date: Wed, 22 Jul 2009 14:27:15 -0700 (PDT) From: "Jonathan Ellis (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Assigned: (CASSANDRA-94) Remove mix of ip-address and hostnames In-Reply-To: <323926381.1240433807446.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis reassigned CASSANDRA-94: --------------------------------------- Assignee: Jonathan Ellis > Remove mix of ip-address and hostnames > --------------------------------------- > > Key: CASSANDRA-94 > URL: https://issues.apache.org/jira/browse/CASSANDRA-94 > Project: Cassandra > Issue Type: Improvement > Reporter: Per Mellqvist > Assignee: Jonathan Ellis > Priority: Minor > Fix For: 0.3 > > Attachments: 0001-switch-to-IP-everywhere.patch, 0002-rename-getHostName-getHostAddress-since-it-should.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > The mix of ip-address and hostnames may cause confusion and problems. > One example is that the EndPoint is internally represented as a four byte IPv4 address in the gossip messages, but upon arrival there is a reverse-lookup into a hostname that is used to create the new EndPoint java object on the receiver side. This is likely to cause problems if a fully qualified hostname is used on one end but the reverse lookup returns just a short machine name, or vice versa. > It also has the strange effect that if you configure ListenAddress using IP-addresses it works only if it is NOT possible to do a reverse lookup of those addresses. > Suggest FBUtilities.getHostName() is renamed to getHostAddress() and made to always return the string representation of the IPv4 address. > Additionally EndPoint.fromBytes() should not attempt a reverse lookup, but just convert the four byte wire format of the IP to the string representation. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.