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 36AE0117FC for ; Sun, 18 May 2014 14:10:53 +0000 (UTC) Received: (qmail 49223 invoked by uid 500); 18 May 2014 13:45:47 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 48267 invoked by uid 500); 18 May 2014 13:45:46 -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 46978 invoked by uid 99); 18 May 2014 13:30:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 May 2014 13:30:05 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.223.182] (HELO mail-ie0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 May 2014 13:30:01 +0000 Received: by mail-ie0-f182.google.com with SMTP id as1so1079597iec.13 for ; Sun, 18 May 2014 06:29:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:from:content-type:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=VXRnjUDSMd28/mzY+2lMhrbsAYNZOO/2SC3uOrqiHHs=; b=R/GhxyZexE4hm5Ohls4Y/Bb2KTlwjcSbMPEB4TPev5x5hrrfH6L/BClQ9G5ZQLj6Mp iTuOPHhdpCzsYndJCAQtz6tSGWpbS/gH159FbMflKzG6zYVjn1S7MVnZKw9oNU77EH1+ exEJaK2uRCLlkoqJSv6sEDoOt2ToDhUTn4+yd8pgxbhqaq/jsZTRiWIMW95UH+tI6UyX lin7exScNQQWdjxbZQiE9xmsCbT85rm1u8oHBxQGDFw4Lw70d1S8J6UCDmS0ebiE7pjr wUU+AwVhE+Xe9TdXZO4gvuSJ5Iw+EdUM65421dYR8/n/L10/0Cts/N3kSswoQJyHp0It aORQ== X-Gm-Message-State: ALoCoQlGztGjHqIN2bHNQDQOmYuhMFgrIpMGaOUJaDJiTGG6G8dsK5kAfq+IJzEr4J9368wxytLO X-Received: by 10.50.32.70 with SMTP id g6mr10460995igi.0.1400419777954; Sun, 18 May 2014 06:29:37 -0700 (PDT) Received: from [192.168.1.54] (173-23-245-196.client.mchsi.com. [173.23.245.196]) by mx.google.com with ESMTPSA id g1sm13335549igt.14.2014.05.18.06.29.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 18 May 2014 06:29:37 -0700 (PDT) Subject: Re: Ordering of schema updates and data modifications References: From: Colin Content-Type: multipart/alternative; boundary=Apple-Mail-68652193-EBC1-49FB-A220-4EF8DF7993A2 X-Mailer: iPad Mail (11D201) In-Reply-To: Message-Id: <1A0661F6-2C62-4867-8CF8-5A1A5C63E43F@clark.ws> Date: Sun, 18 May 2014 08:29:39 -0500 To: "user@cassandra.apache.org" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-68652193-EBC1-49FB-A220-4EF8DF7993A2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi Jan, Try waiting a period of time, say 60 seconds, after modifying the schema so t= he changes propagate throughout the cluster. Also, you could add a step to your automation where you verify the schema ch= ange by attempting to insert/delete from the schema with a higher consistenc= y level to make sure a good number of nodes are in agreement before proceedi= ng. Does this make sense? -- Colin Clark=20 +1-320-221-9531 =20 > On May 18, 2014, at 3:30 AM, Jan Algermissen w= rote: >=20 > Hi, >=20 > in our project, we apparently have a problem or misunderstanding of the re= lationship between schema changes and data updates. >=20 > One team is doing automated tests during build and deployment that execute= s data migration tests on a development cluster. In those migrations there w= ill be schema changes (adding rows) and subsequent data insertions involving= these rows. >=20 > It seems, there are unpredictable times when the update reaches the cluste= r *before* the schema change, causing the tests to fail. >=20 > What can we do to enforce the schema update to have sufficiently happened b= efore the modification is hitting the database? >=20 > Alternatively, what do others do to handle schema migrations during contin= uous delivery processes. >=20 > Jan --Apple-Mail-68652193-EBC1-49FB-A220-4EF8DF7993A2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi Jan,

Try w= aiting a period of time, say 60 seconds, after modifying the schema so the c= hanges propagate throughout the cluster.

Also, you c= ould add a step to your automation where you verify the schema change by att= empting to insert/delete from the schema with a higher consistency level to m= ake sure a good number of nodes are in agreement before proceeding.

Does this make sense?

--
= Colin Clark 
<= div style=3D"margin: 0cm 0cm 0.0001pt;">+1-320-221-9531
 

On May 18, 2014, at 3:30 AM, Jan Algermiss= en <jan.algermissen@nordsc.= com> wrote:

Hi,

in our project, we apparently have a problem o= r misunderstanding of the relationship between schema changes and data updat= es.

One team is doing automated tests durin= g build and deployment that executes data migration tests on a development c= luster. In those migrations there will be schema changes (adding rows) and s= ubsequent data insertions involving these rows.

<= span>It seems, there are unpredictable times when the update reaches the clu= ster *before* the schema change, causing the tests to fail.

=
What can we do to enforce the schema update to have suffici= ently happened before the modification is hitting the database?

Alternatively, what do others do to handle schema migra= tions during continuous delivery processes.

Jan
= --Apple-Mail-68652193-EBC1-49FB-A220-4EF8DF7993A2--