Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Upgrade hector and fix bug. #15

Merged
merged 1 commit into from

2 participants

@nickmbailey
Collaborator

Found a hector bug: https://github.com/rantav/hector/issues/376

This pull request upgrades to the latest hector release which fixes the issue and uses the correct cluster factory method for creating clusters.

@pingles pingles merged commit c0bb608 into pingles:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 30, 2011
  1. @nickmbailey
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +1 −1  project.clj
  2. +1 −1  src/clj_hector/core.clj
View
2  project.clj
@@ -3,7 +3,7 @@
:resources-path "test/resources"
:dev-dependencies [[org.slf4j/slf4j-simple "1.6.3"]
[org.apache.cassandra/cassandra-all "1.0.5"]]
- :dependencies [[me.prettyprint/hector-core "1.0-1" :exclusions [org.slf4j/slf4j-log4j12]]
+ :dependencies [[me.prettyprint/hector-core "1.0-2" :exclusions [org.slf4j/slf4j-log4j12]]
[org.slf4j/slf4j-api "1.6.1"]
[org.clojure/clojure "1.2.1"]
[joda-time/joda-time "2.0"]])
View
2  src/clj_hector/core.clj
@@ -24,7 +24,7 @@
([cluster-name host port configurator]
(cluster cluster-name host port (new CassandraHostConfigurator) {}))
([cluster-name host port configurator credentials]
- (HFactory/createCluster cluster-name
+ (HFactory/getOrCreateCluster cluster-name
(doto configurator (.setHosts (str host ":" port)))
credentials)))
Something went wrong with that request. Please try again.