<  February 2017   >
Su Mo Tu We Th Fr Sa  
          1  2  3  4  
 5  6  7  8  9 10 11  
12 13 14 15 16 17 18  
19 20 21 22 23 24 25  
26 27 28
03:06 IRCFrEAK joined
03:06 IRCFrEAK left
06:13 madgoat joined
06:13 madgoat left
17:44 javajolt joined
17:46 javajolt joined
21:57 reshka joined
21:59 <reshka> Hello all. I have been working on integrating Riak Core into our elixir application and I have hit a bit of a stumbling block. I can run my app and join another node in the cluster, however I am not seeing any of my vnodes transferring ownership. anyone else run into this?
22:00 <reshka> iex(pg_master_app@192.168.137.109)25> :riak_core_console.member_status([])
22:00 <reshka> ================================= Membership ==================================
22:00 <reshka> Status Ring Pending Node
22:00 <reshka> -------------------------------------------------------------------------------
22:00 <reshka> valid 100.0% 50.0% 'pg_master_app@192.168.137.100'
22:00 <reshka> valid 0.0% 50.0% 'pg_master_app@192.168.137.109'
22:00 <reshka> -------------------------------------------------------------------------------
22:00 <reshka> Valid:2 / Leaving:0 / Exiting:0 / Joining:0 / Down:0
22:00 <reshka> :ok
22:00 <reshka> And it is just stuck there
22:02 <reshka> When I call :riak_core_console.ring_status([]) I can see there a lot of indexes sitting there on a "Waiting on: ['Elixir.My.Vnode']" and not doing anything
22:03 <reshka> Any help would be greatly appreciated!
22:03 IRC-Source_89650 joined
22:30 <russelldb> reshka: did you implement the handoff callbacks…I think I messed up a few times doing vnodes and (for example) leaving is_empty callback returning `true`?
22:33 <reshka> yep.
22:33 <reshka> however for is_empty(state) I am return {true, state}
22:33 <reshka> should it just be true?
22:33 <reshka> There is nothing in the VNode
22:34 <reshka> I only implemented the one function that prints out hello
22:35 <reshka> I also added a log statement in each callback and only the start_vnode and init callbacks are hit
22:35 <reshka> except for when I call a command via "handle_command" callback
23:18 <reshka> So strange... So my app's name is called "ping" by my VNode is called "Pingring.Vnode" and in this case the handoff would not work. HOWEVER I changed the app name from "ping" to "pingring" and it all started working. Does riak_core do some kind of app name checking?