Skip to content
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

Merged
merged 2 commits into from
Oct 23, 2020

Conversation

rahulgurnani
Copy link
Contributor

@rahulgurnani rahulgurnani commented Oct 23, 2020

* 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
Copy link
Contributor

@danielmai danielmai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jarifibrahim, @manishrjain, and @vvbalaji-dgraph)

Copy link
Contributor

@danielmai danielmai left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jarifibrahim, @manishrjain, and @vvbalaji-dgraph)

Copy link
Contributor

@danielmai danielmai left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jarifibrahim, @manishrjain, and @vvbalaji-dgraph)

@danielmai danielmai changed the title chore: Cherry picks for DGRAPH-2446 fix(Ludicrous): Upserts on list type in Dgraph Oct 23, 2020
@danielmai danielmai merged commit f8f7c42 into release/v20.07 Oct 23, 2020
@danielmai danielmai deleted the rahulgurnani/releasev2007cp branch October 23, 2020 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants