Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 28496 invoked from network); 18 Apr 2011 09:16:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Apr 2011 09:16:39 -0000 Received: (qmail 67205 invoked by uid 500); 18 Apr 2011 09:16:37 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 66599 invoked by uid 500); 18 Apr 2011 09:16:31 -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 66281 invoked by uid 99); 18 Apr 2011 09:16:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 09:16:30 +0000 X-ASF-Spam-Status: No, hits=-0.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [65.55.88.12] (HELO TX2EHSOBE004.bigfish.com) (65.55.88.12) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 09:16:21 +0000 Received: from mail137-tx2-R.bigfish.com (10.9.14.244) by TX2EHSOBE004.bigfish.com (10.9.40.24) with Microsoft SMTP Server id 14.1.225.8; Mon, 18 Apr 2011 09:16:00 +0000 Received: from mail137-tx2 (localhost.localdomain [127.0.0.1]) by mail137-tx2-R.bigfish.com (Postfix) with ESMTP id E533B1C90405 for ; Mon, 18 Apr 2011 09:15:59 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bh8275dhz2dh87h2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: KIP:(null);UIP:(null);IPVD:NLI;H:IE2RD2HUB010.red002.local;RD:none;EFVD:NLI X-FB-DOMAIN-IP-MATCH: fail Received: from mail137-tx2 (localhost.localdomain [127.0.0.1]) by mail137-tx2 (MessageSwitch) id 1303118159746764_2832; Mon, 18 Apr 2011 09:15:59 +0000 (UTC) Received: from TX2EHSMHS017.bigfish.com (unknown [10.9.14.254]) by mail137-tx2.bigfish.com (Postfix) with ESMTP id A95131158049 for ; Mon, 18 Apr 2011 09:15:59 +0000 (UTC) Received: from IE2RD2HUB010.red002.local (213.199.187.153) by TX2EHSMHS017.bigfish.com (10.9.99.117) with Microsoft SMTP Server (TLS) id 14.1.225.8; Mon, 18 Apr 2011 09:15:59 +0000 Received: from IE2RD2XVS021.red002.local ([10.33.56.25]) by IE2RD2HUB010.red002.local ([10.33.16.249]) with mapi; Mon, 18 Apr 2011 02:15:36 -0700 From: Roland Gude To: "user@cassandra.apache.org" Date: Mon, 18 Apr 2011 02:15:34 -0700 Subject: AW: Two versions of schema Thread-Topic: Two versions of schema Thread-Index: Acv7oB3ZfxiFHMFjQ6uyjxB7ZmJQ1QCBqwsA Message-ID: <120CB7532EA53A4D8CA6B63F94B4ADB351E6D630C9@IE2RD2XVS021.red002.local> References: <1302894224705-6277365.post@n2.nabble.com> In-Reply-To: <1302894224705-6277365.post@n2.nabble.com> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Schema updates in cassandra tickle through the cluster over time very much = like normal writes do. But they keep some state indicating the "parent" schema and they will only = be applied to some node if the parent schema is correct thus asserting the = correct order of schema changes. This process is subject to failure for ins= tance because of nodes being down or network errors. If such a failure happ= ens there it's still possible that everything is relatively easy fixed. Tak= e down the node that missed the updates (use drain) and bring it back only.= This might work (and does not take that long). If it does not take it down= again (again drain) delete the data in the system keyspace. Bring it back = online. There is however a situation where you are really screwed. It is when you i= ssue updates concurrently to different nodes. The schema versions will disa= gree and there is now possibility to bring them back to the same version ag= ain. In this case you need to select one node, bring down all nodes that ha= ve a different schema, delete their system keyspace and bring them back. Schema changes should not be seen as something that can be done regularly. = It should not be done programmatically. There should always be some operato= r looking at the cluster verifying that all nodes are reachable and ring is= ok. And then issue schema changes one at a time using the cli. Greetings, roland -----Urspr=FCngliche Nachricht----- Von: mcasandra [mailto:mohitanchlia@gmail.com]=20 Gesendet: Freitag, 15. April 2011 21:04 An: cassandra-user@incubator.apache.org Betreff: Two versions of schema Is there a problem? [default@StressKeyspace] update column family StressStandard with keys_cached=3D100; 854ee0a0-6792-11e0-81f9-93d987913479 Waiting for schema agreement... The schema has not settled in 10 seconds; further migrations are ill-advise= d until it does. Versions are 854ee0a0-6792-11e0-81f9-93d987913479:[10.18.62.202, 10.18.62.203, 10.18.62.200, 10.18.62.204, 10.18.62.199, 10.18.62.196, 10.18.62.197],22d165ff-6783-11e0-81f9-93d987913479:[10.18.62.198] I remember reading somewhere before that when you have 2 versions of schema= s you are basically in trouble. Can someone explain what it means and it's implications? -- View this message in context: http://cassandra-user-incubator-apache-org.30= 65146.n2.nabble.com/Two-versions-of-schema-tp6277365p6277365.html Sent from the cassandra-user@incubator.apache.org mailing list archive at N= abble.com.