Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Exception when using client to connect flockdb #49

Open
scalajava opened this Issue · 1 comment

2 participants

@scalajava

irb(main):003:0> flock = Flock.new "localhost:7915", :graphs => { :follows => 1, :blocks => 2 }
=> #, @graphs={:follows=>1, :blocks=>2}>
irb(main):004:0> flock.select(nil, :follows, 1).to_a
Flock::Edges::FlockException: Flock::Edges::FlockException
from /var/lib/gems/1.8/gems/flockdb-0.6.1/lib/flock/gen-rb/flock_d_b.rb:139:in recv_select'
from /var/lib/gems/1.8/gems/flockdb-0.6.1/lib/flock/gen-rb/flock_d_b.rb:129:in
select'
from /var/lib/gems/1.8/gems/thrift_client-0.6.0/lib/thrift_client/abstract_thrift_client.rb:115:in send'
from /var/lib/gems/1.8/gems/thrift_client-0.6.0/lib/thrift_client/abstract_thrift_client.rb:115:in
handled_proxy'
from /var/lib/gems/1.8/gems/thrift_client-0.6.0/lib/thrift_client/abstract_thrift_client.rb:57:in select'
from /var/lib/gems/1.8/gems/flockdb-0.6.1/lib/flock/operations/select_operation.rb:32:in
get_results'
from /var/lib/gems/1.8/gems/flockdb-0.6.1/lib/flock/operations/select_operation.rb:41:in operation'
from /var/lib/gems/1.8/gems/flockdb-0.6.1/lib/flock/operation.rb:48:in
call'
from /var/lib/gems/1.8/gems/flockdb-0.6.1/lib/flock/operation.rb:48:in get_results'
from /var/lib/gems/1.8/gems/flockdb-0.6.1/lib/flock/operation.rb:22:in
current_page'
from /var/lib/gems/1.8/gems/flockdb-0.6.1/lib/flock/operation.rb:77:in next?'
from /var/lib/gems/1.8/gems/flockdb-0.6.1/lib/flock/operation.rb:62:in
each'
from /var/lib/gems/1.8/gems/flockdb-0.6.1/lib/flock/operations/select_operation.rb:5:in each'
from (irb):4:in
to_a'
from (irb):4
from /usr/lib/ruby/1.8/rubygems.rb:123

@dhruvg

Were you able to solve this issue? I am facing the exact same problem. Interestingly, the problem does not occur for me when I run the demo (where everything is on localhost). It happens when I create my own graphs where the shards are distributed between 4 mysql nodes and I am making the above query on a flapp server which just has replicating shards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.