183 points · by aphyr · 8y ago · 124 comments
I'd like to thank Kyle for his work on Dgraph. We'll continue to expand Jepsen tests to try and identify more issues and fix the remaining ones.
I'm around if you have questions! Cheers, Manish
Between this and your comment above, it restores a little faith in humanity that there are people out there who honestly want to make their work as good as possible and not paper over cracks.
Yes, but having it published so that everyone sees the actual results without sugar coating or outright ignoring problems is what I meant. I didn't mean that the testing itself was unique, but people funding research and letting the researcher publish it is.
(OK, "unique" is much too strong as that's what much of Jepsen does, but I feel like whenever I'm watching the news and there's a public health study talking about how good or not bad X is, it was often funded by an X industry group and reading more about it find it subject to a lot of issues.)
The Snapshot Isolation bank test bug, in particular, is proving a lot harder to reproduce now -- it takes many hours (even up to 8h) to show a violation; which makes debugging harder obviously. The rest 2-3 are sort of related and easier to fix.
I doubt Jepsen blog post would be updated, but once all the remaining bugs are fixed, we'll write a blog post about it on https://blog.dgraph.io.
We had done a separate testing for Badger before Jepsen, where we had identified and fixed a few issues related to crashes. You can read that blog post here:
https://aphyr.com/posts/317-jepsen-elasticsearch
https://aphyr.com/posts/284-jepsen-mongodb
I understand this analysis was paid for by Dgraph so GIFs and memes aren't appropriate... but I do miss them.
There's another aspect to this: now that I've established a reputation and people take my work seriously, I don't have to be snarky or aggressive to get attention drawn to these issues. And the DB landscape has changed a lot in the last five years! Engineers want to provide formalized safety guarantees. Vendors are taking these failure modes seriously instead of dismissing them as irrelevant! Since I'm getting paid, I can invest more time into making these analyses real collaborations with the vendors. So I see my role now as more about helping people reach their safety goals, and a little less about shaming folks for making systems that didn't live up to their claims.
My other motivations--letting users know how to work with the databases they've chosen, and giving case studies to help other engineers test and improve their own systems, well, those are unchanged. :)
I still reread this and pass it around at least once our twice a year: https://aphyr.com/posts/313-strong-consistency-models
It's dense and takes some time to digest but I consider it required reading for anyone working on or with distributed systems.
like the parent and others here, I've lamented this. I appreciate your considered reply. This callout, in particular, is something I hadn't accounted for, but it makes perfect sense (the general idea that "we're getting serious and our clients are serious now too, so posts have to be serious" is just sort of obvious, and still likely true). Cheers to fighting the good fight!
1. write some code
2. submit to Jepsen
3. if errors, goto 1
The problem with this approach is obvious.
The main issue is that distributed database consistency without trivial, performance-killing locking schemes is too complex to prove when writing or using any trivial, local methods based on e.g. SMT solvers or so.
If something like cockroachdb would be proved-consistent on that level, it would be used for applications currently employing pessimistic locking due to a lack of trust in their database, or scaling vertically without really needing to (there are cases which make horizontal scaling cost-prohibitive due to the dependency chains in the algorithms that can solve them, but they can be replaced most of the time).
There's been a lot of work on both of these problems, but right now, proving concurrent algorithms correct, and proving equivalency of those algorithms to executable code, are very much open research problems.
Glad to see the progress made, and bugs found and fixed, for these Jepsen tests.
As a side note, interesting to see a largely Go-based, real-world project plagued with race conditions. Quite a few bugs read "but it was done in a goroutine" or "but mutable capturing in a goroutine", and even a segfault.
Maybe this will naturally bubble down so that the far more interesting technical discussions can bubble to the top, but I fear this sub-thread will eventually drown out the on-topic discussion.
Reference: https://opensource.org/osd
Your updated statement also says "Dgraph is available under an Apache v2.0 based liberal license", which I think is unfairly using the Apache 2.0 name without clarifying that your license in fact is not open source. The language is still dishonest.
If we had changed the Apache license, we would not have referred to it by that name. But given we have not changed the Apache terms, it seems to us more confusing to arbitrarily refer to those terms by a different name.
My take is that Apache + Commons Clause is more liberal than AGPL, something I can expand on in my blog post -- that's clear from our users, who actually appreciated the switch from AGPL to the current license.
You can use it freely for open source and commercial applications with one, single, easy-to-understand catch:
You can't sell it or provide it as a paid service.
Is it open source? No.
Can I and you and almost everyone except Google Gloud, Amazon AWS and Microsoft Azure use it exactly as if it is open source? Yes.
Is it less hassle than the AGPL? IMO, clearly yes.
MIT, BSD, ZLIB, Apache2, etc. are liberal.
That’s the server side version of the anti-tivo clause that made the GPLv3.
I see a v4 coming
> It [sic] this “Open Source”?
> No. [also sic]
> “Open source”, has a specific definition that was written years ago and is by the Open Source Initiative, which approves Open Source licenses. Applying the Commons Clause to an open source project will mean the source code is available, and meets many of the elements of the Open Source Definition, such as free access to source code, freedom to modify, and freedom to re-distribute, but not all of them. So to avoid confusion, it is best not to call Commons Clause software “open source.”
Additionally, "Apache 2.0 + Commons Clause" is not an Apache license. I have seen a number of people be confused by this. I hope Apache implements some guidance with regards to trademarks on this matter, mostly so I don't have to keep saying it.
Anyway we should avoid creating this confusion with this new crazy license, commons clause is malicioua in ita attempt to use a well understood term in a way that twista its meaning.
Because that's never been how I understood it. I'm pretty sure I understood it to be, at least in it's most encompassing sense, that the source was visible long before the time OSI says it created the label.
Edit: s/weakest/encompassing/