These are chat archives for atomix/atomix

29th
May 2016
cloudimpl
@cloudimpl
May 29 2016 05:31
Hi ,this question regarding copycat. is accessing hashmap inside the state machine executor is thread safe?. http://pastebin.com/sh5dxpi6
Jordan Halterman
@kuujo
May 29 2016 05:32
yep… state machine methods will always be called in the same thread, so data structures don’t need to be thread safe. This is necessary to enforce order in the state machine anyways
cloudimpl
@cloudimpl
May 29 2016 05:33
great,thanks jordan.
Jordan Halterman
@kuujo
May 29 2016 05:33
even e.g. that scheduled callback will be called in the state machine thread
cloudimpl
@cloudimpl
May 29 2016 05:48
thanks
cloudimpl
@cloudimpl
May 29 2016 07:04
do you have any documentation for copycat exception handling. what happened state machine throw exception , does that effect state of the cluster?.
Jordan Halterman
@kuujo
May 29 2016 07:07
That needs to be documented… Exceptions are treated as another type of output from a command/query. When an exception is thrown by the state machine, it will be returned to the client as a state machine error and the CompletableFuture returned by submit will be completed exceptionally. This area needs some improvement. Right now the client just sees a generic exception for any exception inside the state machine. Would be nice to return the message
cloudimpl
@cloudimpl
May 29 2016 07:08
thanks jordan, that's fine at the moment.