-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Ludicrous): Upserts on list type in Dgraph #6796
Conversation
* Fix DGRAPH-2446: Dgraph missing upserts in ludicrous mode * Add tests * Address review comments * Add a space
* Add sleep before running the tests * Fix the assert in tests * Wait for eventual consistency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @jarifibrahim, @manishrjain, and @vvbalaji-dgraph)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests don't compile in this branch:
# github.com/dgraph-io/dgraph/systest/ludicrous [github.com/dgraph-io/dgraph/systest/ludicrous.test]
./upsert_test.go:54:39: cannot use &"github.com/dgraph-io/dgo/v200/protos/api".Operation literal (type *"github.com/dgraph-io/dgo/v200/protos/api".Operation) as type *"github.com/dgraph-io/dgo/v2/protos/api".Operation in argument to dg.Alter
./upsert_test.go:72:21: cannot use mu (type *"github.com/dgraph-io/dgo/v200/protos/api".Mutation) as type *"github.com/dgraph-io/dgo/v2/protos/api".Mutation in argument to txn.Mutate
./upsert_test.go:100:27: cannot use req (type *"github.com/dgraph-io/dgo/v200/protos/api".Request) as type *"github.com/dgraph-io/dgo/v2/protos/api".Request in argument to dg.NewTxn().Do
./upsert_test.go:148:27: cannot use req (type *"github.com/dgraph-io/dgo/v200/protos/api".Request) as type *"github.com/dgraph-io/dgo/v2/protos/api".Request in argument to dg.NewTxn().Do
FAIL github.com/dgraph-io/dgraph/systest/ludicrous [build failed]
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @jarifibrahim, @manishrjain, and @vvbalaji-dgraph)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. I meant to send the above comment for #6797. The tests are OK here in rahulgurnani/releasev2007cp. Merging.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @jarifibrahim, @manishrjain, and @vvbalaji-dgraph)
Post mortem of issue: https://discuss.dgraph.io/t/dgraph-missing-mutations-in-ludicrous-mode-post-mortem/11019
This change is
Docs Preview: