Atle Solbakken

Results 9 comments of Atle Solbakken

Which byte swap functions should be used for the fixed width types that work on all platforms and that preferably are used elsewhere in the code?

I've added the configuration parameter **UniqueIdServerId** which is used to ensure uniqueness across different servers. I've also implemented byte swapping and changed the method of retrieving a thread ID.

@wjcarpenter Thanks, I can see that somebody linked in this PR there as well. I've also posted this diff on bugzilla https://bz.apache.org/bugzilla/show_bug.cgi?id=65307

To test my implementation of snapshoting, I added a function to suggest that the server performs a snapshot without needing to change the threshold to trigger snapshot to be taken....

[Usage of snapshot suggestion function in RRR](https://github.com/atlesn/rrr/blob/05aeb780777736564469dd2c5b37bee37fd13aa6/src/lib/raft/server.c#L639) [Functional test in RRR test framework](https://github.com/atlesn/rrr/blob/05aeb780777736564469dd2c5b37bee37fd13aa6/src/tests/test_raft.c#L895)

> Do you need this only for testing? > > In the v1.x version of this Raft library, this functionality is not needed (in particular, the `RAFT_SUGGEST_SNAPSHOT` event is redundant,...

Hi I find there's a lot of resistance when using the UV implementation for multiple reasons especially as the application I'm integrating raft into already has IO and event stuff...

> What event loop are you using? My short-term goal would be to use libuv to create an I/O backend for the v1.x API, but later on I'd like to...

I was thinking about the "pull" method as well and how this could be done, I've thought a bit more on how to implement that. I think the pulling you...