Report a Dgraph Bug
Hey team,
On the server (one node) I ran:
curl --request POST --url http://127.0.0.1:8080/admin --header 'content-type: application/graphql' --data 'mutation {
export(input: {
format: "rdf"
destination: "/host/dg-export"
}) {
response {
message
code
}
}
}'
- Downloaded the dump to my dev computer
- imported them using live loader
dgraph live --files /import/g01.rdf.gz --schema /import/g01.schema.gz --zero dg-zero:5080
Then I noticed some of the data is missing even though the RDF
file and achema file declare them correctly.
Checked the origin server and the data is there. (query that return data on it wont return the same on the dev one)
The revent type is (copied from the dumped schema):
<tnnt.cn>:string @index(exact) .
<tnnt.id>:string @index(hash) @upsert .
<tnnt.account>:string @index(exact) .
<tnnt.isDeleted>:bool @index(bool) .
<tnnt.isEnabled>:bool .
type <Tenant> {
tnnt.id
tnnt.account
tnnt.cn
tnnt.isDeleted
tnnt.isEnabled
}
The RDF
file has the data:
$ grep 0x27c879 g01.rdf
<0x27c879> <tnnt.cn> "nsg42"^^<xs:string> .
<0x27c879> <tnnt.id> "4f31eb6e-16af-4f65-bb43-bf32a8b4ed6f"^^<xs:string> .
<0x27c879> <dgraph.type> "Tenant"^^<xs:string> .
<0x27c879> <tnnt.account> "nsg42"^^<xs:string> .
<0x27c879> <tnnt.isDeleted> "false"^^<xs:boolean> .
<0x27c879> <tnnt.isEnabled> "true"^^<xs:boolean> .
And the missing predicate are:
tnnt.account
tnnt.isDeleted
tnnt.isEnabled
Any idea?
What version of Dgraph are you using?
Dgraph Version
$ dgraph version
[Decoder]: Using assembly version of decoder
Page Size: 4096
Dgraph version : v20.11.3
Dgraph codename : tchalla-3
Dgraph SHA-256 : c3c1474369415e74b1a59ec7053cd1e585c9d55fe71243c72c48e313728d995a
Commit SHA-1 : 8d3eb766c
Commit timestamp : 2021-03-31 17:28:12 +0530
Branch : HEAD
Go version : go1.15.5
jemalloc enabled : true
For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph , visit http://discuss.dgraph.io.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.
Have you tried reproducing the issue with the latest release?
Nope
What is the hardware spec (RAM, OS)?
- Server is Ubuntu 20.04
- Dev is Fedora release 34
Both running dgraph using docker (same image)
Steps to reproduce the issue (command/config used to run Dgraph).
$ cat docker-compose.yml
version: "3.2"
services:
zero:
container_name: dg-zero
image: dgraph/dgraph:v20.11.3
volumes:
- $PWD/data:/dgraph
ports:
- 5080:5080
- 6080:6080
restart: on-failure
command: dgraph zero --my=zero:5080
alpha:
container_name: dg-alpha
image: dgraph/dgraph:v20.11.3
volumes:
- $PWD/data:/dgraph
- /tmp:/host
ports:
- 8080:8080
- 9080:9080
- 7080:7080
restart: on-failure
command: dgraph alpha --my=server:7080 --lru_mb=2048 --zero=zero:5080 --my=alpha:7080 --whitelist 172.0.0.0/8
ratel:
container_name: dg-ratel
image: dgraph/dgraph:v20.11.3
ports:
- 8000:8000