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 9CA3417BF2 for ; Fri, 22 May 2015 17:51:42 +0000 (UTC) Received: (qmail 26816 invoked by uid 500); 22 May 2015 17:51:42 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 26775 invoked by uid 500); 22 May 2015 17:51:42 -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 26744 invoked by uid 99); 22 May 2015 17:51:42 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2015 17:51:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 52B83DFBD9; Fri, 22 May 2015 17:51:42 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: samt@apache.org To: commits@cassandra.apache.org Date: Fri, 22 May 2015 17:51:42 -0000 Message-Id: <3b83fd6a8f5c4efb979bcb417aa1b5c0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/3] cassandra git commit: More fixes to connection error handling in CqlRecordWriter Repository: cassandra Updated Branches: refs/heads/cassandra-2.2 5ab14968e -> 0d24b1a80 refs/heads/trunk 491f7dc27 -> 8d1a50e09 More fixes to connection error handling in CqlRecordWriter Patch by Philip Thompson; reviewed by Sam Tunnicliffe for CASSANDRA-9442 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/0d24b1a8 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/0d24b1a8 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/0d24b1a8 Branch: refs/heads/cassandra-2.2 Commit: 0d24b1a802f67641b534cf2a407342f6129862ef Parents: 5ab1496 Author: Philip Thompson Authored: Wed May 20 13:56:31 2015 -0400 Committer: Sam Tunnicliffe Committed: Fri May 22 18:39:59 2015 +0100 ---------------------------------------------------------------------- .../cassandra/hadoop/cql3/CqlRecordWriter.java | 57 +++++++++++--------- 1 file changed, 31 insertions(+), 26 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/0d24b1a8/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java b/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java index c507197..91753a2 100644 --- a/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java +++ b/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java @@ -26,30 +26,18 @@ import java.util.concurrent.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; - -import com.datastax.driver.core.exceptions.AuthenticationException; -import com.datastax.driver.core.exceptions.DriverException; -import com.datastax.driver.core.exceptions.InvalidQueryException; -import com.datastax.driver.core.exceptions.NoHostAvailableException; -import com.datastax.driver.core.BoundStatement; -import com.datastax.driver.core.ColumnMetadata; -import com.datastax.driver.core.Host; -import com.datastax.driver.core.Metadata; -import com.datastax.driver.core.PreparedStatement; -import com.datastax.driver.core.Session; -import com.datastax.driver.core.TableMetadata; -import com.datastax.driver.core.TokenRange; -import org.apache.cassandra.db.marshal.AbstractType; +import com.datastax.driver.core.*; +import com.datastax.driver.core.exceptions.*; import org.apache.cassandra.db.marshal.CompositeType; -import org.apache.cassandra.db.marshal.LongType; -import org.apache.cassandra.db.marshal.TypeParser; -import org.apache.cassandra.dht.*; -import org.apache.cassandra.exceptions.ConfigurationException; -import org.apache.cassandra.exceptions.SyntaxException; -import org.apache.cassandra.hadoop.*; -import org.apache.cassandra.utils.*; +import org.apache.cassandra.dht.IPartitioner; +import org.apache.cassandra.dht.Token; +import org.apache.cassandra.hadoop.ColumnFamilyOutputFormat; +import org.apache.cassandra.hadoop.ConfigHelper; +import org.apache.cassandra.hadoop.HadoopCompat; +import org.apache.cassandra.utils.FBUtilities; import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.mapreduce.*; +import org.apache.hadoop.mapreduce.RecordWriter; +import org.apache.hadoop.mapreduce.TaskAttemptContext; import org.apache.hadoop.util.Progressable; /** @@ -214,7 +202,7 @@ class CqlRecordWriter extends RecordWriter, List, List, List, List keyColumns)