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 835E6200B96 for ; Thu, 22 Sep 2016 03:08:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 81EAE160ADB; Thu, 22 Sep 2016 01:08:27 +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 C0EC8160AE1 for ; Thu, 22 Sep 2016 03:08:26 +0200 (CEST) Received: (qmail 29540 invoked by uid 500); 22 Sep 2016 01:08: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 29450 invoked by uid 99); 22 Sep 2016 01:08:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2016 01:08:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8672A2C2A67 for ; Thu, 22 Sep 2016 01:08:20 +0000 (UTC) Date: Thu, 22 Sep 2016 01:08:20 +0000 (UTC) From: "Stefania (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Issue Comment Deleted] (CASSANDRA-12642) cqlsh NoHostsAvailable/AuthenticationFailure when sourcing a file with COPY commands MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 22 Sep 2016 01:08:27 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefania updated CASSANDRA-12642: --------------------------------- Comment: was deleted (was: Thanks for the patch! It LGTM except for one clarification, I'm not sure if you intentionally replaced {{self.current_keyspace}} (the keyspace from the latest USE statement) with {{self.keyspace}} (the initial keyspace). I assume this was a typo since it isn't related? Running the tests here: ||2.2||3.0||trunk|| |[patch|https://github.com/stef1927/cassandra/commits/12642-cqlsh-2.2]|[patch|https://github.com/stef1927/cassandra/commits/12642-cqlsh-3.0]|[patch|https://github.com/stef1927/cassandra/commits/12642-cqlsh]| |[dtest|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12642-cqlsh-2.2-cqlsh-tests/]|[dtest|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12642-cqlsh-3.0-cqlsh-tests/]|[dtest|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12642-cqlsh-cqlsh-tests/]| I also created a [pull request|https://github.com/riptano/cassandra-dtest/pull/1333] with a new test that reproduces the problem.) > cqlsh NoHostsAvailable/AuthenticationFailure when sourcing a file with COPY commands > ------------------------------------------------------------------------------------ > > Key: CASSANDRA-12642 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12642 > Project: Cassandra > Issue Type: Bug > Components: Tools > Reporter: Adam Holmberg > Assignee: Stefania > Priority: Minor > Labels: cqlsh > Fix For: 2.2.8, 3.10, 3.0.10 > > > In {{cqlsh}}, with authentication enabled, when sourcing a file with {{COPY}} commands in it: > {noformat} > test.cql:2:Error for (None, None): Failed to connect to all replicas ['127.0.0.1'] for (None, None), errors: ["NoHostAvailable - ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('Remote end requires authentication.',)})"] (permanently given up after 0 rows and 5 attempts) > {noformat} > {{cqlsh}} creates a new {{Shell}} without passing all pertinent arguments. When {{copyutil}} creates new cluster connections, they are not initialized correctly. > This is only for the {{source}} command. As a workaround, {{cqlsh -f