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 4743311EB9 for ; Sun, 18 May 2014 20:09:53 +0000 (UTC) Received: (qmail 95709 invoked by uid 500); 18 May 2014 20:01:01 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 62511 invoked by uid 500); 18 May 2014 19:36:00 -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 60681 invoked by uid 99); 18 May 2014 19:28:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 May 2014 19:28:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.227.17.24] (HELO mout.kundenserver.de) (212.227.17.24) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 May 2014 19:27:58 +0000 Received: from [10.20.84.20] (firewall01.talentformation.kunden.net-lab.net [80.69.33.177]) by mrelayeu.kundenserver.de (node=mreue101) with ESMTP (Nemesis) id 0LnjcV-1XGER40Z4R-00htfp; Sun, 18 May 2014 21:27:37 +0200 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Ordering of schema updates and data modifications From: Jan Algermissen In-Reply-To: Date: Sun, 18 May 2014 21:27:32 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1874) X-Provags-ID: V02:K0:Wn/bELBCBqLE3w/5OcPpOjUSNVEp5GWxTUIoNlXIp22 +tJCQO0psgmPXgFViL7nImtsCaNafJl/4onCgIUDzI+jZe71gV jOnksESXDepWg3dChgNjxKGs09cBL9Wcbf8i3agmbYo6vG7FGq 3lv4dm7xUaf3HJXuXIm2bnS0wRx1Lgg9UKpF6+C78GapaR84ks DUszsJSQtLvLaemb1ROfEbfnYYIbYX2o3MhiIiIWl4K6reA5sf RGIObwNpCmgZ/bnGILCBRn1cL4FykXofK2gH6mqlvW+HfvdnZN 0WlAbZ6stIM2j9T7GPKfeqLrbxHVUVIASnar0vqUg3qQsXadrv 8uYq/JaO/xSIhL8kquPbd3SQMo7BpwtrVS+ne57scW9Zd0jeDu Rg30nnynFk4cQ== X-Virus-Checked: Checked by ClamAV on apache.org On 18 May 2014, at 10:30, Jan Algermissen = wrote: > Hi, >=20 > in our project, we apparently have a problem or misunderstanding of = the relationship between schema changes and data updates. >=20 > One team is doing automated tests during build and deployment that = executes data migration tests on a development cluster. In those = migrations there will be schema changes (adding rows) and subsequent = data insertions involving these rows. >=20 > It seems, there are unpredictable times when the update reaches the = cluster *before* the schema change, causing the tests to fail. >=20 > What can we do to enforce the schema update to have sufficiently = happened before the modification is hitting the database? >=20 > Alternatively, what do others do to handle schema migrations during = continuous delivery processes. Surprisingly difficult to find, but here is an example of how to use = =91describe cluster=92 to check schema propagation: = http://www.datastax.com/support-forums/topic/schema-versions-disagree#post= -7055 Jan >=20 > Jan