Coder Social home page Coder Social logo

Comments (10)

rantav avatar rantav commented on September 25, 2024

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.

aleph2012 avatar aleph2012 commented on September 25, 2024

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.

rantav avatar rantav commented on September 25, 2024

Hi sorry for delay, I'm on vacation but am looking into it... just a little slow...

from hector.

aleph2012 avatar aleph2012 commented on September 25, 2024

No problem! Enjoy your vacation and forget this junk! :) I have a workaround in my version for now.

from hector.

rantav avatar rantav commented on September 25, 2024

do you have two hosts in your cassandra setup?

from hector.

rantav avatar rantav commented on September 25, 2024

nm my question about two hosts, it's irrelevant; I see the problem, will fix it soon

from hector.

rantav avatar rantav commented on September 25, 2024

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.

aleph2012 avatar aleph2012 commented on September 25, 2024

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.

rantav avatar rantav commented on September 25, 2024

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.

aleph2012 avatar aleph2012 commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.