Comments (10)
Which version are you using?
I think this is a bug fixed at the latest version.
It was fixed in this commit http://github.com/rantav/hector/commit/1c664c55b3561e64177c193ded6c3f80f377c6d9
and the version you need is 0.6.0-9 or -10 or higher
(or, if you work with cassandra 0.5.1 then 0.5.1-9)
from hector.
I just got the latest code from your master branch. I checked, and it does have the changes for the commit you mention. But it still exhibits the same behavior. Seems like one way to fix it would be to have a try catch around the call to client = clientPools.borrowClient() in skipToNextHost(). Then after catching the exception it could try the next host in the list.
from hector.
Hi sorry for delay, I'm on vacation but am looking into it... just a little slow...
from hector.
No problem! Enjoy your vacation and forget this junk! :) I have a workaround in my version for now.
from hector.
do you have two hosts in your cassandra setup?
from hector.
nm my question about two hosts, it's irrelevant; I see the problem, will fix it soon
from hector.
Fixed
$ git push --all
Counting objects: 116, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (62/62), done.
Writing objects: 100% (85/85), 9.41 KiB, done.
Total 85 (delta 40), reused 0 (delta 0)
To [email protected]:rantav/hector.git
1962aa7..1a80908 0.5.0 -> 0.5.0
80babe5..43c35f5 0.5.1 -> 0.5.1
079633b..e614402 0.6.0 -> 0.6.0
5cf91dc..4321125 master -> master
Aleph, can you please validate? Thanks!
from hector.
Hey rantav, the new logic seems to work! I had a follow-up question though. I think we only query cassandra once for its set of hosts in initFailover(). So if in the meantime we add more hosts dynamically, and later on we get a failure I think the failover logic will only loop thru the hosts it knew about at startup.
from hector.
yes, we only query once that's true.
however, there's a jmx call updateKnownHosts which should be triggered by an admin once new hosts are added.
I've considered polling for this but I think the admin-way is a less simpler and maybe it's all that's needed.
from hector.
I didn't know about the JMX call. Yeah, I agree, the admin should trigger it when adding new hosts. Not a big fan of polling in general. I'll make sure our admin knows about this! :)
from hector.
Related Issues (20)
- clock should get in a static way in HConnectionManager HOT 2
- HLocks configuration should allow a definable gc_grace seconds, instead of using default 10s HOT 2
- Clients wait indefinitely when pool exhausted HOT 2
- MicrosecondsClockResolution produces timestamps out of long range
- Wiki points to http://hector-client.org/
- Trivial improvements to *pom.xml HOT 2
- Upgrade dependency API usage to remove use of deprecated code
- me.prettyprint.hector.api.exceptions.HectorTransportException: Unable to open transport to (192.168.1.6):9160 HOT 2
- in 1.0.3 When many request come to hecotor pool . more than one node have problem.
- getting data from cassandra, column name from cassandra trailing with blank characters HOT 5
- DynamicLoadBalancingPolicy: LatencyAwareHClientPool may throw NoSuchElementException under certain circumstances HOT 1
- CQL 3 not supported
- Implement consistent logging for setters in me.prettyprint.cassandra.model.ConfigurableConsistencyLevel
- No Documentation available for Hector with SSL HOT 3
- Memory problem on ConcurrentHClientPool using HThriftClient with TFramedTransport HOT 3
- No failover policy when coordinating through partitioned off nodes
- Connecting to Cassandra does not ask for credentials
- hector 1.1-4 throws TimedOutException() execute_cql_query_result.read on Cassandra 2.1.12
- default validator comparator type on hector clients: "cannot parse 'SomeColumn' as hex bytes" HOT 3
- Copyright claim in HFactoryTest.java? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hector.