Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 43581 invoked from network); 9 Jul 2010 12:18:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Jul 2010 12:18:14 -0000 Received: (qmail 21375 invoked by uid 500); 9 Jul 2010 12:18:13 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 21116 invoked by uid 500); 9 Jul 2010 12:18:10 -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 21108 invoked by uid 99); 9 Jul 2010 12:18:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jul 2010 12:18:09 +0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sna612@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jul 2010 12:18:02 +0000 Received: by vws14 with SMTP id 14so2560061vws.31 for ; Fri, 09 Jul 2010 05:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=9R1k5exb8F7sjTwDw27/tM+LdkCQcx5iMgAqbcRyl4o=; b=De+P2uVb/2I8nBWQ/KlIQuT/dPKJY5LzPB/x12gdLDUT8zt5zirZhlitkJWfdBUM6c /Jyfwa70d4JWuvsHKpWASTfqAEQH6rhfMimp9DEm03LnxF+UWu+53HxHcwYzk+7ixKpa 6kl4M3Ev1b/GtioLgcTkvydowzrBGKJ8K86e0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=hU8f58Jk3kfRv4c+H/oaG1Wschi6SJy0wdkWKstzTU/EZ/gB5Xp+zl86LpsE3scRIV Yuf3AhllOpG8i3uRRAPiG5STKzqI1Jf00BY+0BP/iaa1SmeAQFOKGihmJe93yqb366He RY+/KFFRxwvQ6kB53lC/MI8Oyy4WJ7UJwPBlk= Received: by 10.220.75.148 with SMTP id y20mr5198897vcj.4.1278677801187; Fri, 09 Jul 2010 05:16:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.74.5 with HTTP; Fri, 9 Jul 2010 05:16:21 -0700 (PDT) From: Sagar Agrawal Date: Fri, 9 Jul 2010 17:46:21 +0530 Message-ID: Subject: manual InitialToken assignemnt To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016e645fae81f3a9d048af36079 X-Virus-Checked: Checked by ClamAV on apache.org --0016e645fae81f3a9d048af36079 Content-Type: text/plain; charset=ISO-8859-1 I have a 2 node cluster node1 - 5 node2 - 9 If I insert a row with key="a", which node should it go and why? It is going to node1, but I think it should go to node2, since token value of node is closer to "a" (using java string compareTo method) someone please clarify Thanks --0016e645fae81f3a9d048af36079 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I have a 2 node cluster
node1 - <InitialToken>5</InitialToken&g= t;
node2 - <InitialToken>9</InitialToken>

If I insert= a row with key=3D"a", which node should it go and why?

It= is going to node1, but I think it should go to node2, since token value of= node is closer to "a" (using java string compareTo method)

someone please clarify

Thanks
--0016e645fae81f3a9d048af36079--