From commits-return-206449-archive-asf-public=cust-asf.ponee.io@cassandra.apache.org Wed Feb 14 08:46:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1D64F180621 for ; Wed, 14 Feb 2018 08:46:03 +0100 (CET) Received: (qmail 67792 invoked by uid 500); 14 Feb 2018 07:46:03 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 67772 invoked by uid 99); 14 Feb 2018 07:46:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2018 07:46:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 8CAB41A07A7 for ; Wed, 14 Feb 2018 07:46:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id D1sxIcXElrm3 for ; Wed, 14 Feb 2018 07:46:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 252525F180 for ; Wed, 14 Feb 2018 07:46:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 67F7BE00E9 for ; Wed, 14 Feb 2018 07:46:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 230A021E80 for ; Wed, 14 Feb 2018 07:46:00 +0000 (UTC) Date: Wed, 14 Feb 2018 07:46:00 +0000 (UTC) From: "Jeff Jirsa (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CASSANDRA-14231) After ddl cluster.getMetadata().checkSchemaAgreement() returns true but schema is not in agreement MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-14231?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeff Jirsa resolved CASSANDRA-14231. ------------------------------------ Resolution: Invalid > After ddl cluster.getMetadata().checkSchemaAgreement() returns true but s= chema is not in agreement > -------------------------------------------------------------------------= ------------------------- > > Key: CASSANDRA-14231 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1423= 1 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: George Shuklin > Priority: Major > Fix For: 3.10 > > > We run a set of ddl statements and after each of them wait until schema c= ome to agreement. However periodically after Cluster says that schema is in= agreement and we run next DDL statement, it fails as previous DDL did not = work properly.=C2=A0 > The most typical scenario when this problem happens almost always: first = DDL=C2=A0drops a table, and next=C2=A0DDL creates it=C2=A0(and cassandra sa= ys that this table already exists). > =C2=A0 > This is our code to wait: > private void waitForSchemaAgreement() > { > while (!icluster.getMetadata().checkSchemaAgreement()) { > try { > Thread.sleep(waitTime*1000); > } catch (Exception e){ > //=C2=A0ignore=C2=A0 } } } > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org