Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A70D3200B26 for ; Mon, 27 Jun 2016 16:31:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A5E68160A63; Mon, 27 Jun 2016 14:31:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 04A32160A54 for ; Mon, 27 Jun 2016 16:31:52 +0200 (CEST) Received: (qmail 60323 invoked by uid 500); 27 Jun 2016 14:31:52 -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 60296 invoked by uid 99); 27 Jun 2016 14:31:52 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2016 14:31:52 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 044182C0451 for ; Mon, 27 Jun 2016 14:31:52 +0000 (UTC) Date: Mon, 27 Jun 2016 14:31:52 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-11820) Altering a column's type causes EOF MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 27 Jun 2016 14:31:53 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne updated CASSANDRA-11820: ----------------------------------------- Status: Patch Available (was: Open) Attaching patch for this below. All it does is making sure we use the "current" version of a ColumnDefinition when serializing a cell. That said, I'm not absolutely satisfied with this: while it's simple on principle, it's not all that easy to follow why the definition of the cell itself may not be up-to-date, and that make things probably a bit error prone (which, btw, is not particularly new to this patch). Not sure what is a better alternative though right now, we probably need a cleaner handling of metadata changes in general. But it's not worth leaving that bug in while we thing this through, so I suggest the patch below is good enough for now. || [3.0|https://github.com/pcmanus/cassandra/commits/11820-3.0] || [utests|http://cassci.datastax.com/job/pcmanus-11820-3.0-testall/] || [dtests|http://cassci.datastax.com/job/pcmanus-11820-3.0-dtest/] || (I'll push a trunk branch on CI later, but waiting on making sure tests passes on 3.0 first. Besides, I think it'll merge cleanly) > Altering a column's type causes EOF > ----------------------------------- > > Key: CASSANDRA-11820 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11820 > Project: Cassandra > Issue Type: Bug > Reporter: Carl Yeksigian > Assignee: Sylvain Lebresne > Fix For: 3.0.x, 3.x > > > While working on CASSANDRA-10309, I was testing altering columns' types. This series of operations fails: > {code} > CREATE TABLE test (a int PRIMARY KEY, b int) > INSERT INTO test (a, b) VALUES (1, 1) > ALTER TABLE test ALTER b TYPE BLOB > SELECT * FROM test WHERE a = 1 > {code} > Tried this on 3.0 and trunk, both fail. -- This message was sent by Atlassian JIRA (v6.3.4#6332)