Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B7DD110A76 for ; Tue, 1 Apr 2014 10:51:24 +0000 (UTC) Received: (qmail 58558 invoked by uid 500); 1 Apr 2014 10:51:20 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 57701 invoked by uid 500); 1 Apr 2014 10:51:18 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 57659 invoked by uid 99); 1 Apr 2014 10:51:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 10:51:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apoorva.gaurav@myntra.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-ig0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 10:51:10 +0000 Received: by mail-ig0-f172.google.com with SMTP id hn18so4613727igb.11 for ; Tue, 01 Apr 2014 03:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=myntra.com; s=myntra; h=mime-version:from:date:message-id:subject:to:content-type; bh=VxqIBYlqifBhytr98PfqVyaKCmqBCE3ot/QYb6CzHds=; b=Y+ooy2CikcltQXSf2ufGYJz+3rLFRI44n0CSkXLdWOajd5sOuRlUn4jzfR5TeUxrLQ Gl8PJrckP1khXKCzG1iWHbi7DQfaycqz03zH8xbW1uUNKK8unD5etUb3May5G+qcny7R 3o3f5ukinJwxdBXB17gVbSjSM9EIT7EsnpR04= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=VxqIBYlqifBhytr98PfqVyaKCmqBCE3ot/QYb6CzHds=; b=R/RS1esjHy5EwXzgYjAggqPQqIYgqBxk3/JoJ1CieHnqdhmsngTJ84xxW4taoYwDg5 YKFe8NttgBMchFNaL10Zq4tKdZexXhgXhAAI0ceBJ5HjNtKe3bFGF06GmFVoS8Dd1T75 DuHjMGCCuLR3qIF/u9iiHLz90UHOvJwyxrvDwhc5H3dtSLbeIVsxcZRZh0zNWqWqv8xu zxzEgcHm+/cqRySOy/Tn9XOcpWnSAJKTXbJC//yhidHZyuIDrngdRWa36CXpglFlJfCs BTdi/ABs11dCNMBXOagbMkyWgnz2xSLVvyu/+sgYfNdD0kQkqt+3A03ECQCrf2zclTc5 YYFA== X-Gm-Message-State: ALoCoQlxuj4TNUKnWPaeeDil6S5Q5qUkfS3sHFPuN8KwbnkjL8rWJX8jBXAtXjJxIj6enoZVvYdb X-Received: by 10.42.185.140 with SMTP id co12mr37940icb.87.1396349450177; Tue, 01 Apr 2014 03:50:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.223.20 with HTTP; Tue, 1 Apr 2014 03:50:30 -0700 (PDT) From: Apoorva Gaurav Date: Tue, 1 Apr 2014 16:20:30 +0530 Message-ID: Subject: Dead node appearing in datastax driver To: user Content-Type: multipart/alternative; boundary=20cf303bf4faf5ecbe04f5f8f08e X-Virus-Checked: Checked by ClamAV on apache.org --20cf303bf4faf5ecbe04f5f8f08e Content-Type: text/plain; charset=ISO-8859-1 Hello All, We had a 4 node cassandra 2.0.4 cluster ( lets call them host1, host2, host3 and host4), out of which we've removed one node (host4) using nodetool removenode command. Now using nodetool status or nodetool ring we no longer see host4. It's also not appearing in Datastax opscenter. But its intermittently appearing in Metadata.getAllHosts() while connecting using datastax driver 1.0.4. Couple of questions :- -How is it appearing. -Can this have impact on read / write performance of client. Code which we are using to connect is public void connect() { PoolingOptions poolingOptions = new PoolingOptions(); cluster = Cluster.builder() .addContactPoints(inetAddresses.toArray(new String[]{})) .withLoadBalancingPolicy(new RoundRobinPolicy()) .withPoolingOptions(poolingOptions) .withPort(port) .withCredentials(username, password) .build(); Metadata metadata = cluster.getMetadata(); System.out.printf("Connected to cluster: %s\n", metadata.getClusterName()); for (Host host : metadata.getAllHosts()) { System.out.printf("Datacenter: %s; Host: %s; Rack: %s\n", host.getDatacenter(), host.getAddress(), host.getRack()); } } -- Thanks & Regards, Apoorva --20cf303bf4faf5ecbe04f5f8f08e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello All,

We had a 4 node cassandra 2.= 0.4 cluster=A0=A0( lets call them host1, host2, host3 and host4), out of wh= ich we've removed=A0one node (host4)=A0using nodetool removenode comman= d. Now using nodetool status or nodetool ring we no longer see host4. It= 9;s also not appearing in Datastax opscenter. But its intermittently appear= ing in Metadata.getAllHosts() while connecting using datastax driver 1.0.4.= =A0

Couple of questions :-
-How is it appearing.<= /div>
-Can this have impact on read / write performance of client.

Code which we are using to connect is

=A0 =A0=A0public voi= d connect() {

=A0 =A0 =A0 =A0 PoolingOptions poolingOptions =3D new PoolingOptions();

=A0 =A0 =A0 =A0 cluster =3D Cluster.b= uilder()

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .addContactPoints(inetAddresses.toArray(new String[]{}))=

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .withLoadBalancingPolicy(new RoundRobinPolicy())

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .withPoolingOptions(poolingOp= tions)

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .withPort(po= rt)

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .withCredentials(username, password)

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .build();

=A0 =A0 =A0 =A0 Metadata metadata =3D cluste= r.getMetadata();

=A0 =A0 =A0 =A0 System.out.printf("Connected to cluster: %s\n", metadata.getCl= usterName());

=A0 =A0 =A0 =A0 for (Host host : meta= data.getAllHosts()) {

=A0 =A0 =A0 =A0 =A0 =A0 System.out.pr= intf("Datacenter: %s; Host: %s; Rack: %s\n", host.getDatacenter(), host.getAddress(), host.getRack());

=A0 =A0 =A0 =A0 }

=A0 =A0 }



-- <= br>Thanks & Regards,
Apoorva
--20cf303bf4faf5ecbe04f5f8f08e--