Hi, I sometimes get this error when using the bulk loader with a xidmap:
I0112 01:34:53.476194 3138539 xidmap.go:282] Writing xid map to DB
panic: Key cannot be empty
goroutine 227 [running]:
github.com/dgraph-io/dgraph/x.Panic(...)
/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:81
github.com/dgraph-io/dgraph/xidmap.(*XidMap).dbWriter(0xc0001ee620)
/ext-go/1/src/github.com/dgraph-io/dgraph/xidmap/xidmap.go:186 +0x2bf
created by github.com/dgraph-io/dgraph/xidmap.New
/ext-go/1/src/github.com/dgraph-io/dgraph/xidmap/xidmap.go:104 +0x213
dgraph bulk -f -s --map_shards=2 --format=rdf --xidmap xidmap --http 3476.93s user 164.59s system 1657% cpu 3:39.66 total
My first assumption was that there was something wrong with the data files, but it doesn’t happen every time (even with the exact same data). I have been able to reproduce the error several times. It’s just that it’s not certain to happen every time.
If I restart but keep the previous xidmap it seems to never happen.
[Decoder]: Using assembly version of decoder
Page Size: 4096
Dgraph version : v20.11.0
Dgraph codename : tchalla
Dgraph SHA-256 : 8acb886b24556691d7d74929817a4ac7d9db76bb8b77de00f44650931a16b6ac
Commit SHA-1 : c4245ad55
Commit timestamp : 2020-12-16 15:55:40 +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 https://discuss.dgraph.io.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.