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 3316810AA9 for ; Tue, 5 Aug 2014 08:19:11 +0000 (UTC) Received: (qmail 50910 invoked by uid 500); 5 Aug 2014 08:19:11 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 50892 invoked by uid 500); 5 Aug 2014 08:19:11 -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 50881 invoked by uid 99); 5 Aug 2014 08:19:10 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2014 08:19:10 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 96E539BF01F; Tue, 5 Aug 2014 08:19:10 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: slebresne@apache.org To: commits@cassandra.apache.org Message-Id: <19a0b1465a5a46ef9d6b5d74ac3a05d2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: Update java driver to 2.0.4 (for hadoop) Date: Tue, 5 Aug 2014 08:19:10 +0000 (UTC) Repository: cassandra Updated Branches: refs/heads/cassandra-2.0 21db1a057 -> 5151fd5bc Update java driver to 2.0.4 (for hadoop) patch by alexliu68; reviewed by slebresne for CASSANDRA-7618 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/5151fd5b Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/5151fd5b Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/5151fd5b Branch: refs/heads/cassandra-2.0 Commit: 5151fd5bcc369540d83914cdcb5cc01f4d739f96 Parents: 21db1a0 Author: Sylvain Lebresne Authored: Tue Aug 5 10:16:35 2014 +0200 Committer: Sylvain Lebresne Committed: Tue Aug 5 10:18:58 2014 +0200 ---------------------------------------------------------------------- CHANGES.txt | 1 + build.xml | 2 +- .../org/apache/cassandra/hadoop/cql3/CqlConfigHelper.java | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/5151fd5b/CHANGES.txt ---------------------------------------------------------------------- diff --git a/CHANGES.txt b/CHANGES.txt index 3471bcc..20330f8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 2.0.10 + * Update java driver (for hadoop) (CASSANDRA-7618) * Fix truncate to always flush (CASSANDRA-7511) * Remove shuffle and taketoken (CASSANDRA-7601) * Switch liveRatio-related log messages to DEBUG (CASSANDRA-7467) http://git-wip-us.apache.org/repos/asf/cassandra/blob/5151fd5b/build.xml ---------------------------------------------------------------------- diff --git a/build.xml b/build.xml index 68907df..4b64570 100644 --- a/build.xml +++ b/build.xml @@ -387,7 +387,7 @@ - + http://git-wip-us.apache.org/repos/asf/cassandra/blob/5151fd5b/src/java/org/apache/cassandra/hadoop/cql3/CqlConfigHelper.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/hadoop/cql3/CqlConfigHelper.java b/src/java/org/apache/cassandra/hadoop/cql3/CqlConfigHelper.java index b375ce2..741f599 100644 --- a/src/java/org/apache/cassandra/hadoop/cql3/CqlConfigHelper.java +++ b/src/java/org/apache/cassandra/hadoop/cql3/CqlConfigHelper.java @@ -422,15 +422,15 @@ public class CqlConfigHelper poolingOptions.setCoreConnectionsPerHost(HostDistance.LOCAL, coreConnections.get()); if (maxConnections.isPresent()) poolingOptions.setMaxConnectionsPerHost(HostDistance.LOCAL, maxConnections.get()); - if (maxSimultaneousRequests.isPresent()) - poolingOptions.setMaxSimultaneousRequestsPerConnectionThreshold(HostDistance.LOCAL, maxSimultaneousRequests.get()); if (minSimultaneousRequests.isPresent()) poolingOptions.setMinSimultaneousRequestsPerConnectionThreshold(HostDistance.LOCAL, minSimultaneousRequests.get()); + if (maxSimultaneousRequests.isPresent()) + poolingOptions.setMaxSimultaneousRequestsPerConnectionThreshold(HostDistance.LOCAL, maxSimultaneousRequests.get()); poolingOptions.setCoreConnectionsPerHost(HostDistance.REMOTE, 0) .setMaxConnectionsPerHost(HostDistance.REMOTE, 0) - .setMaxSimultaneousRequestsPerConnectionThreshold(HostDistance.REMOTE, 0) - .setMinSimultaneousRequestsPerConnectionThreshold(HostDistance.REMOTE, 0); + .setMinSimultaneousRequestsPerConnectionThreshold(HostDistance.REMOTE, 0) + .setMaxSimultaneousRequestsPerConnectionThreshold(HostDistance.REMOTE, 0); return poolingOptions; }