Dgraph live err

Report a Dgraph Bug

Error while mutating: Uid: [25945475022150909] cannot be greater than lease: [8655093596148933] s.Code Unknown

What version of Dgraph are you using?

Dgraph version : v1.2.6

Have you tried reproducing the issue with the latest release?


CentOS Linux release 7.5.1804 (Core)

/home/bigdata/hadoop/dgraph/dgraph live --new_uids=false -f result.rdf -a locatehost:9080,locatehost:9081,locatehost:9082 -z locatehost:5080 -x /home/bigdata/hadoop/project/tmp/xuid/

restart zero can resolve

This error happens when you have a dataset with explicit UIDs and your Zero is a pretty new instance. Also, you are using the flag --new_uids=false which corroborates with the emergence of the problem. If you wanna avoid this issue, you would use --new_uids=true always.

If you wanna track the mapping of UIDs you have options such as:

-x, --xidmap string                Directory to store xid to uid mapping

thanks, I have to use this option --new_uids=false, Because I do not use it will generate new nodes ,I want to reuse the last generated node used to generate edges

Hey, @xluckly is this still a block for you?

You should follow what I have said or try to lease more UIDs before loading the previous data with fixed UIDS. You should do:


Until you have the same amount of UIDs leased in the previous cluster.

See more at https://dgraph.io/docs/deploy/dgraph-zero/#more-about-state-endpoint