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 81ECC200B64 for ; Tue, 2 Aug 2016 19:27:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7F0CF160AAC; Tue, 2 Aug 2016 17:27:22 +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 D0891160A65 for ; Tue, 2 Aug 2016 19:27:21 +0200 (CEST) Received: (qmail 57092 invoked by uid 500); 2 Aug 2016 17:27:20 -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 57018 invoked by uid 99); 2 Aug 2016 17:27:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2016 17:27:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 866D12C0D63 for ; Tue, 2 Aug 2016 17:27:20 +0000 (UTC) Date: Tue, 2 Aug 2016 17:27:20 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-12335) Super columns are broken after upgrading to 3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 02 Aug 2016 17:27:22 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksey Yeschenko updated CASSANDRA-12335: ------------------------------------------ Assignee: Sylvain Lebresne (was: Aleksey Yeschenko) > Super columns are broken after upgrading to 3.0 > ----------------------------------------------- > > Key: CASSANDRA-12335 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12335 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Jeremiah Jordan > Assignee: Sylvain Lebresne > Fix For: 3.0.x, 3.x > > > Super Columns are broken after upgrading to cassandra-3.0 HEAD. The below script shows this. > 2.1 cli output for get: > {code} > [default@test] get Sites[utf8('Bob')][utf8('attr')]['name'] as utf8; > => (name=name, value=Bob, timestamp=1469724504357000) > {code} > cqlsh: > {code} > [default@test] > key | blobAsText(column1) > --------------+--------------------- > 0x53696d6f6e | attr > 0x426f62 | attr > {code} > 3.0 cli: > {code} > [default@unknown] use test; > unconfigured table schema_columnfamilies > [default@test] get Sites[utf8('Bob')][utf8('attr')]['name'] as utf8; > null > [default@test] > {code} > cqlsh: > {code} > key | system.blobastext(column1) > --------------+---------------------------------- > 0x53696d6f6e | \x00\x04attr\x00\x00\x04name\x00 > 0x426f62 | \x00\x04attr\x00\x00\x04name\x00 > {code} > Run this from a directory with cassandra-3.0 checked out and compiled > {code} > ccm create -n 2 -v 2.1.14 testsuper > echo "####################### Starting 2.1 #######################" > ccm start > MYFILE=`mktemp` > echo "create keyspace test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = {replication_factor:2}; > use test; > create column family Sites with column_type = 'Super' and comparator = 'BytesType' and subcomparator='UTF8Type'; > set Sites[utf8('Simon')][utf8('attr')]['name'] = utf8('Simon'); > set Sites[utf8('Bob')][utf8('attr')]['name'] = utf8('Bob'); > get Sites[utf8('Bob')][utf8('attr')]['name'] as utf8;" > $MYFILE > ~/.ccm/repository/2.1.14/bin/cassandra-cli < $MYFILE > rm $MYFILE > ~/.ccm/repository/2.1.14/bin/nodetool -p 7100 flush > ~/.ccm/repository/2.1.14/bin/nodetool -p 7200 flush > ccm stop > # run from cassandra-3.0 checked out and compiled > ccm setdir > echo "####################### Starting Current Directory #######################" > ccm start > ./bin/nodetool -p 7100 upgradesstables > ./bin/nodetool -p 7200 upgradesstables > ./bin/nodetool -p 7100 enablethrift > ./bin/nodetool -p 7200 enablethrift > MYFILE=`mktemp` > echo "use test; > get Sites[utf8('Bob')][utf8('attr')]['name'] as utf8;" > $MYFILE > ~/.ccm/repository/2.1.14/bin/cassandra-cli < $MYFILE > rm $MYFILE > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)