Skip to content

Live loading a data export: Cannot mutate graphql reserved predicate dgraph.graphql.schema #5235

@danielmai

Description

@danielmai

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).

  1. Run Dgraph
  2. Run a data export.
  3. Run live loader: 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.

[10:48:17-0700] Elapsed: 19m25s Txns: 13073 N-Quads: 13073000 N-Quads/s [last 5s]: 19400 Aborts: 0
Error while mutating: Cannot mutate graphql reserved predicate dgraph.graphql.schema s.Code Unknown
...
Error while mutating: Cannot mutate graphql reserved predicate dgraph.graphql.schema s.Code Unknown
[12:27:07-0700] Elapsed: 01h58m15s Txns: 19387 N-Quads: 19386576 N-Quads/s [last 5s]:     0 Aborts: 606

The export file has the graphql predicates in the export.

$ zcat ./datav20.03.0/alpha1/export/dgraph.r7.u0417.1935/g01.rdf.gz
<0x1> <dgraph.type> "dgraph.graphql"^^<xs:string> .
<0x1> <dgraph.graphql.xid> "dgraph.graphql.schema"^^<xs:string> .
<0x1> <dgraph.graphql.schema> ""^^<xs:string> .

Metadata

Metadata

Assignees

Labels

kind/bugSomething is broken.status/acceptedWe accept to investigate/work on it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions