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

Upsert Block fails when processing multiple nodes #4021

Closed
zhuyaoyhj opened this issue Sep 18, 2019 · 0 comments · Fixed by #4268
Closed

Upsert Block fails when processing multiple nodes #4021

zhuyaoyhj opened this issue Sep 18, 2019 · 0 comments · Fixed by #4268
Assignees
Labels
area/upsert Issues related to upsert operations. kind/bug Something is broken. priority/P1 Serious issue that requires eventual attention (can wait a bit) status/accepted We accept to investigate/work on it.

Comments

@zhuyaoyhj
Copy link

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

@mangalaman93 mangalaman93 self-assigned this Sep 18, 2019
@mangalaman93 mangalaman93 added area/upsert Issues related to upsert operations. kind/bug Something is broken. priority/P1 Serious issue that requires eventual attention (can wait a bit) status/accepted We accept to investigate/work on it. labels Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/upsert Issues related to upsert operations. kind/bug Something is broken. priority/P1 Serious issue that requires eventual attention (can wait a bit) status/accepted We accept to investigate/work on it.
Development

Successfully merging a pull request may close this issue.

2 participants