dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

Set up Jepsen test for Dgraph

Open manishrjain opened this issue 9 years ago • 8 comments

Aphyr is super busy -- so it would be a while before he tests Dgraph. We have a few things that need to go in, but we're like to at least do a prelim test to find any edge cases that we haven't handled. So, would be great if someone could run Jepsen test on Dgraph (talk to us before, so we can put those last 5% things in).

manishrjain avatar Mar 17 '17 03:03 manishrjain

Do we already have a test suite for jepsen ? Or does this involve creating one ?

foobatman avatar Mar 17 '17 05:03 foobatman

Nope, got no idea about what it involves to run Jepsen; so would require setting one up.

manishrjain avatar Mar 17 '17 06:03 manishrjain

Okay. Nice area for me to start helping dgraph. Will start looking at it.

On Fri, Mar 17, 2017, 12:27 PM Manish R Jain [email protected] wrote:

Nope, got no idea about what it involves to run Jepsen; so would require setting one up.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/dgraph-io/dgraph/issues/711#issuecomment-287281450, or mute the thread https://github.com/notifications/unsubscribe-auth/AB-j0RoZLCvAVnx9-TPKdwLmj1daLvADks5rmi7qgaJpZM4MgJkH .

foobatman avatar Mar 17 '17 06:03 foobatman

Can you tell me few guarantees that you expect Dgraph to always satisfy when running in clustered environment ? One that I can think of is linearizability. Initially, it would be good to start asserting on those and then add more edge cases. What does hivemind reckon about it ?

foobatman avatar Mar 17 '17 11:03 foobatman

Also I find that Dgraph's architecture is somewhat closer to https://github.com/cockroachdb/cockroach. This link ( https://jepsen.io/analyses/cockroachdb-beta-20160829#fnref1 ) shows jespen analysis for it. Can we move on similar lines ?

foobatman avatar Mar 17 '17 11:03 foobatman

  • I think linearizability is one of the top ones.
  • Then, avoiding data loss in case of crashes.
  • Bringing up a new replica server, and ensuring that its version of data equals other replicas.

Also, we intend to use full linearizability provided by Raft; unlike how CockroachDB does it.

manishrjain avatar Mar 17 '17 11:03 manishrjain

I know I'm bumping a very old issue here, but has there been any work done on running DGraph under Jepsen?

petersondrew avatar Mar 02 '18 14:03 petersondrew

Yes, Kyle himself is working on this :-).

manishrjain avatar Mar 03 '18 06:03 manishrjain