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 EDC6011B55 for ; Wed, 23 Jul 2014 22:38:39 +0000 (UTC) Received: (qmail 97690 invoked by uid 500); 23 Jul 2014 22:38:39 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 97616 invoked by uid 500); 23 Jul 2014 22:38:39 -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 97378 invoked by uid 99); 23 Jul 2014 22:38:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 22:38:39 +0000 Date: Wed, 23 Jul 2014 22:38:38 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-7603) cqlsh fails to decode blobs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-7603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tyler Hobbs updated CASSANDRA-7603: ----------------------------------- Attachment: 7603.txt 7603.txt (and [branch|https://github.com/thobbs/cassandra/tree/CASSANDRA-7603]) updates the monkey-patch to handle the new {{protocol_version}} argument for {{BytesType.deserialize()}}. > cqlsh fails to decode blobs > --------------------------- > > Key: CASSANDRA-7603 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7603 > Project: Cassandra > Issue Type: Bug > Components: Tools > Reporter: Tyler Hobbs > Assignee: Tyler Hobbs > Fix For: 2.1.0 > > Attachments: 7603.txt > > > As described in [PYTHON-101|https://datastax-oss.atlassian.net/browse/PYTHON-101], cqlsh patches the python driver's deserialization method for BytesType for formatting purposes. When the bundled driver was upgraded to 2.1, the patch was not updated to match, resulting in an error like this: > {noformat} > cqlsh:unicode> select * from test; > Traceback (most recent call last): > File "/home/ryan/.ccm/repository/git_cassandra-2.1/bin/cqlsh", line 908, in perform_simple_statement > rows = self.session.execute(statement, trace=self.tracing_enabled) > File "/home/ryan/.ccm/repository/git_cassandra-2.1/bin/../lib/cassandra-driver-internal-only-2.1.0b1.post.zip/cassandra-driver-2.1.0b1.post/cassandra/cluster.py", line 1186, in execute > result = future.result(timeout) > File "/home/ryan/.ccm/repository/git_cassandra-2.1/bin/../lib/cassandra-driver-internal-only-2.1.0b1.post.zip/cassandra-driver-2.1.0b1.post/cassandra/cluster.py", line 2610, in result > raise self._final_exception > TypeError: validate() takes exactly 1 argument (2 given) > {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)