Skip to content

Upsert Block fails when processing multiple nodes #4021

@zhuyaoyhj

Description

@zhuyaoyhj

What version of Dgraph are you using?

Dgraph version   : v1.1.0  
Dgraph SHA-256   :  7d4294a80f74692695467e2cf17f74648c18087ed7057d798f40e1d3a31d2095
Commit SHA-1     : ef7cdb28
Commit timestamp : 2019-09-04 00:12:51 -0700
Branch           : HEAD
Go version       : go1.12.7

Have you tried reproducing the issue with the latest release?

yes

What is the hardware spec (RAM, OS)?

Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz ,linux, 128G

Steps to reproduce the issue (command/config used to run Dgraph).

I want to upgraph dgraph from 1.0.15 to 1.1.0。now dgraph 1.1.0 has support for a type system。 use the expand() function, the use of the type system is required。However, there is no dgraph.type in the data of dgraph1.0.15 export。The data exported has 30000000 nodes,
I need to add dgraph.type to each node.

The command:

curl -H "Content-Type: application/rdf" -X POST 10.134.27.30:8281/mutate?commitNow=true -d  $'
upsert {
  query {
    v as var(func: has(xid))
  }

  mutation {
    set {
      uid(v) <dgraph.type> "Thing" .
    }
  }
}
' | jq

Expected behaviour and actual result.

I want to add dgraph.type to each node. But dgraph.ERROR shows:
image

Metadata

Metadata

Assignees

Labels

area/upsertIssues related to upsert operations.kind/bugSomething is broken.priority/P1Serious issue that requires eventual attention (can wait a bit)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