Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90A4910A81 for ; Fri, 7 Feb 2014 15:52:27 +0000 (UTC) Received: (qmail 55124 invoked by uid 500); 7 Feb 2014 15:52:21 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 55086 invoked by uid 500); 7 Feb 2014 15:52:21 -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 54956 invoked by uid 99); 7 Feb 2014 15:52:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Feb 2014 15:52:20 +0000 Date: Fri, 7 Feb 2014 15:52:19 +0000 (UTC) From: =?utf-8?Q?Piotr_Ko=C5=82aczkowski_=28JIRA=29?= To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-6678) Unwanted schema pull while upgrading nodes from 1.2 to 2.0 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-6678?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 13894649#comment-13894649 ]=20 Piotr Ko=C5=82aczkowski commented on CASSANDRA-6678: ----------------------------------------------- For upgrade to work, do I need to patch 1.2? Or is it enough to patch 2.0? > Unwanted schema pull while upgrading nodes from 1.2 to 2.0 > ---------------------------------------------------------- > > Key: CASSANDRA-6678 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6678 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Sergio Bossa > Assignee: Sergio Bossa > Fix For: 1.2.16, 2.0.6 > > Attachments: CASSANDRA-6678-1_2.patch, CASSANDRA-6678-2_0.patch > > > While upgrading from 1.2 to 2.0, the 1.2 nodes are not supposed to pull s= chemas from upgraded 2.0 nodes to avoid conflicts. > This relies on network version checks between the two nodes, but there's = a bit of a race between the Gossiper, which is activated first, and the Mes= sagingService, which is activated after the Gossiper and handles network ve= rsion exchange: if a 1.2 node Gossiper gets a gossip message from a newly 2= .0 node *before* opening connections from the MessagingService, the version= will still be 1.2, and the schema will be pulled from the new node. > A possible solution may be to have the Gossiper update the network versio= n upon receiving the first gossip message of an upgraded node: thoughts? -- This message was sent by Atlassian JIRA (v6.1.5#6160)