These are chat archives for atomix/atomix

29th
Mar 2017
Stephen Carman
@hntd187
Mar 29 2017 10:11
@kuujo can you link me or walk me through a basic guide to create a custom resource? I have read th documentation, gotta be 15 times now and I just can't seem to get it something working. I am able to create the resource (I think) but then any operations on it just fail and I can't get any debugging information other than ApplicationException, I can provide you with all my code if you have 10 minutes.
Jordan Halterman
@kuujo
Mar 29 2017 15:11
@hntd187 your code would be great!
Stephen Carman
@hntd187
Mar 29 2017 15:25
For your trouble @kuujo I will pull request your documentation with my learning to make the example a bit easier in teh future
I do warn you, I wrote it in Scala
Himanshu
@himanshug
Mar 29 2017 19:56
@kuujo I'm gonna do the PRs necessary, it might take a little while as I'm getting started with things but they will happen. I know you can probably do everything in much less time than me, but I would like to do them to make my understanding better as well. thanks.
great to hear about the active development.... another longish term thing I have in mind is to remove druid's dependency on mysql (very lightweight use is there) and replace it with a StateMachine in raft ... copycat use for discovery/leadership will gain us some confidence with copycat/raft before we can get to the state of replacing mysql... I'm sure we'll make/need some adjustments to support that use case with copycat.
Himanshu
@himanshug
Mar 29 2017 20:40
@kuujo as i understand, raft cluster configuration if stored via Metastore , so what happens if one of the raft node crashes and goes away permanently.... will other raft nodes forever think that crashed raft node is temporary failure and will come back eventually ? and, do I need to explicitly ask one of the other raft nodes to initiate a CopycatCluster.remove(crashed_node) to remove it from configuration in Metastore , but I don't see any such method in CopycatCluster ?
Stephen Carman
@hntd187
Mar 29 2017 22:12
@kuujo You might need more info, but basically I am trying to append a double to a list
and get the list back too
should have most of my code
Again, sorry if scala is not your thing
Thanks for looking at this btw
Jordan Halterman
@kuujo
Mar 29 2017 22:58
No worries I know Scala
Well... I did Scala for about 6 months, so I sort of know it ;-)
Jordan Halterman
@kuujo
Mar 29 2017 23:07

@hntd187 ApplicationException is thrown when an exception occurs inside a state machine method. I need to backport the fixes to throw correct exception messages on the client. But the first thing I’d try is catching/printing exceptions in the state machine.

I’m actually wondering if this is happing in the Atomix resource manager state machine though. I’ll have to try this out when I get a chance...

Jonathan Halterman
@jhalterman
Mar 29 2017 23:47
6 months means you know nothing! :smile:
Jordan Halterman
@kuujo
Mar 29 2017 23:48
touché