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 D829CD499 for ; Fri, 7 Sep 2012 13:51:57 +0000 (UTC) Received: (qmail 73364 invoked by uid 500); 7 Sep 2012 13:51:55 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 73336 invoked by uid 500); 7 Sep 2012 13:51:55 -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 73328 invoked by uid 99); 7 Sep 2012 13:51:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 13:51:55 +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 alienth@gmail.com designates 209.85.213.60 as permitted sender) Received: from [209.85.213.60] (HELO mail-yw0-f60.google.com) (209.85.213.60) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 13:51:49 +0000 Received: by yhfq11 with SMTP id q11so2696935yhf.25 for ; Fri, 07 Sep 2012 06:51:28 -0700 (PDT) Received: by 10.68.232.9 with SMTP id tk9mr1379600pbc.0.1347025888255; Fri, 07 Sep 2012 06:51:28 -0700 (PDT) X-Google-Doc-Id: f8613ffde27be120 X-Google-Web-Client: true Date: Fri, 7 Sep 2012 06:51:27 -0700 (PDT) From: Jason Harvey To: cassandra-users@googlegroups.com Cc: user@cassandra.apache.org Message-Id: <75ab7ccc-bc7c-4934-bc6e-a8ecf4636ef7@googlegroups.com> In-Reply-To: <619263fe-4b2e-49da-b65b-632feb8a6a74@googlegroups.com> References: <388f19a9-ce17-43b7-8339-3c4d7bfe2db3@googlegroups.com> <619263fe-4b2e-49da-b65b-632feb8a6a74@googlegroups.com> Subject: Re: Cannot bootstrap new nodes in 1.0.11 ring - schema issue MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_655_18449475.1347025887907" X-Google-IP: 67.188.243.71 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_655_18449475.1347025887907 Content-Type: multipart/alternative; boundary="----=_Part_656_3836113.1347025887907" ------=_Part_656_3836113.1347025887907 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I attempted to manually load the Schema sstables onto the new node and bootstrap it. Unfortunately when doing so, the new node believed it was already bootstrapped, and just joined the ring with zero data. To fix (read: hack) that, I removed the following logic from StorageService.java:523: if (DatabaseDescriptor.isAutoBootstrap() && !(SystemTable.isBootstrapped() || DatabaseDescriptor.getSeeds().contains(FBUtilities.getBroadcastAddress()) || !Schema.instance.getNonSystemTables().isEmpty())) I replaced everything after the && with just !SystemTable.isBootstrapped(). No idea why that logic was failing, as I had zero non-system tables. Of course, while this technically works, I'd rather not use a hacked build every time I need to bootstrap :/ ------=_Part_656_3836113.1347025887907 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I attempted to manually load the Schema sstables onto the new node and boot= strap it. Unfortunately when doing so, the new node believed it was already= bootstrapped, and just joined the ring with zero data.

To fix (read= : hack) that, I removed the following logic from StorageService.java:523:
        if (DatabaseDescriptor.isA= utoBootstrap()
         &nb= sp;  && !(SystemTable.isBootstrapped()
   &n= bsp;            = ; || DatabaseDescriptor.getSeeds().contains(FBUtilities.getBroadcastAddress= ())
           &n= bsp;     || !Schema.instance.getNonSystemTables().isEmp= ty()))


I replaced everything after the && with just !Sys= temTable.isBootstrapped(). No idea why that logic was failing, as I had zer= o non-system tables.


Of course, while this technically works, I'= d rather not use a hacked build every time I need to bootstrap :/
------=_Part_656_3836113.1347025887907-- ------=_Part_655_18449475.1347025887907--