Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1FE0ACD4C for ; Wed, 9 May 2012 14:30:11 +0000 (UTC) Received: (qmail 69464 invoked by uid 500); 9 May 2012 14:30:10 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 69396 invoked by uid 500); 9 May 2012 14:30:10 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 69243 invoked by uid 99); 9 May 2012 14:30:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 14:30:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 14:30:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4AFCF43CCFB for ; Wed, 9 May 2012 14:29:49 +0000 (UTC) Date: Wed, 9 May 2012 14:29:49 +0000 (UTC) From: "Brandon Williams (JIRA)" To: commits@cassandra.apache.org Message-ID: <2093423148.44436.1336573789308.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1929060412.42406.1336536312281.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-4227) StorageProxy throws NPEs for when there's no hostids for a target 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-4227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271448#comment-13271448 ] Brandon Williams commented on CASSANDRA-4227: --------------------------------------------- We should just drop the hint in this case, see CASSANDRA-4120 > StorageProxy throws NPEs for when there's no hostids for a target > ----------------------------------------------------------------- > > Key: CASSANDRA-4227 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4227 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Dave Brosius > Priority: Trivial > > On trunk... > if there is no host id due to an old node, an info log is generated, but the code continues to use the null host id causing NPEs in decompose... Should this bypass this code, or perhaps can the plain ip address be used in this case? don't know. > as follows... > UUID hostId = StorageService.instance.getTokenMetadata().getHostId(target); > if ((hostId == null) && (Gossiper.instance.getVersion(target) < MessagingService.VERSION_12)) > logger.info("Unable to store hint for host with missing ID, {} (old node?)", target.toString()); > RowMutation hintedMutation = RowMutation.hintFor(mutation, ByteBuffer.wrap(UUIDGen.decompose(hostId))); > hintedMutation.apply(); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira