-
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
Live loading a data export: Cannot mutate graphql reserved predicate dgraph.graphql.schema #5235
Comments
Able to reproduce this. In this(8a650d7) change, we started inserting some graphql node.
This node is also exported when export is triggered. Exported data for this node is as follow:
Since this node has only reserved predicates, hence live loader panics show above error while performing mutation for these records. |
Also, we should have a way of letting everyone know that internal predicates should be hidden from the Schema panel. As well as this fact that one should not export system predicates. A note somewhere visible maybe. |
Note: Just an update, I have some users complaining about this.
|
Maybe we shouldn't export that predicate in an export and live loader should have an option to pass a GraphQL schema. Also looks like something that should be caught by an automated test, so we should improve there too. |
There is also an upcoming PR regarding internal types/predicates, where any type/predicate that start with |
I'm thinking firstly confirm if it's an issues on 20.03.1 once a GraphQL schema is added. I expect the easiest way to do that is to add an export then live load test to both master and 20.03, if there isn't enough already. Then either... (option 1) more changes / better for users - also updates live loader
(option 2) quicker to do / less nice for users - no changes to live loader
|
I think the following would unblock us the fastest:
We could have a flag whose default value is true because I think by default the live loader assumes that we want to import all the data. If that's not desired, users could flip the value of the flag to skip sending the graphql schema. @MichaelJCompton thoughts? |
Nevermind. There's also the xid predicate that I haven't considered. Maybe we could do the following:
|
This is fixed in the last releases. There are still changes to the live loader that need to go but they are not blocking the releases. I've opened a separate ticket to track those changes. |
What version of Dgraph are you using?
master (5f74130)
Have you tried reproducing the issue with the latest release?
This doesn't happen in v20.03.0.
What is the hardware spec (RAM, OS)?
64 GB Ubuntu Linux, Docker
Steps to reproduce the issue (command/config used to run Dgraph).
dgraph live -f g01.rdf.gz -s g01.schema.gz. -a localhost:9080 -z localhost:5080
Expected behavior and actual result.
Live loader never finishes and continues outputting this in the log.
The export file has the graphql predicates in the export.
The text was updated successfully, but these errors were encountered: