These are chat archives for atomix/atomix

13th
Jan 2017
Jordan Halterman
@kuujo
Jan 13 2017 05:22
Right that's what I was thinking. No problem releasing it when it's fixed, and I'll take a look at it more closely soon
@ccleve we should add that to the Atomix API for sure. Right now session timeouts can only be set on servers/replicas in Atomix. Support for clients setting the timeout was just added to Copycat. We should add them to the Atomix client. We also have some performance improvements and other small changes that will probably mean another minor release pretty soon along with #260
I'll add the timeout right now actually
hazemkmammu
@hazemkmammu
Jan 13 2017 09:13

@kuujo Great work! Thanks for the release and addressing all requests in such short notice.

I confirmed that group.getMember("foo") no longer returns null when "foo" is down. I haven't explored the distributed group state change listener and new session expiry behaviour yet but I will soon.

PS: I had some minor problems while testing. I will add an issue for that. Please check when you can.

hazemkmammu
@hazemkmammu
Jan 13 2017 09:31
Never mind about the minor problems I mentioned, I couldn't reproduce them. I will create an issue if I encounter it again. FYI this is the related log:
java.lang.IllegalArgumentException: invalid code: 111
    at io.atomix.catalyst.serializer.Identifier.forCode(Identifier.java:213) ~[catalyst-serializer-1.1.2.jar:na]
    at io.atomix.catalyst.serializer.Serializer.readObject(Serializer.java:1019) ~[catalyst-serializer-1.1.2.jar:na]
    at io.atomix.catalyst.serializer.Serializer.readObject(Serializer.java:981) ~[catalyst-serializer-1.1.2.jar:na]
    at io.atomix.copycat.server.storage.Segment.get(Segment.java:393) ~[copycat-server-1.2.0.jar:na]
    at io.atomix.copycat.server.storage.Log.get(Log.java:354) ~[copycat-server-1.2.0.jar:na]
    at io.atomix.copycat.server.state.FollowerState.sendPollRequests(FollowerState.java:124) ~[copycat-server-1.2.0.jar:na]
    at io.atomix.copycat.server.state.FollowerState.lambda$resetHeartbeatTimeout$146(FollowerState.java:86) ~[copycat-server-1.2.0.jar:na]
    at io.atomix.copycat.server.state.FollowerState$$Lambda$60/455576859.run(Unknown Source) ~[na:na]
    at io.atomix.catalyst.concurrent.Runnables.lambda$logFailure$2(Runnables.java:20) ~[catalyst-concurrent-1.1.2.jar:na]
    at io.atomix.catalyst.concurrent.Runnables$$Lambda$17/1515477775.run(Unknown Source) [catalyst-concurrent-1.1.2.jar:na]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.8.0_25]
    at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_25]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [na:1.8.0_25]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.8.0_25]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_25]
    at java.lang.Thread.run(Unknown Source) [na:1.8.0_25]