Alpha panics with invalid UID 0 in Dgraph #5238
Labels
area/crash
Dgraph issues that cause an operation to fail, or the whole server to crash.
kind/bug
Something is broken.
status/accepted
We accept to investigate/work on it.
https://discuss.dgraph.io/t/dgraph-cluster-crashes-when-recreating-index/6353
What version of Dgraph are you using?
v20.03.0
Have you tried reproducing the issue with the latest release?
Yes.
What is the hardware spec (RAM, OS)?
N/A (macOS)
Steps to reproduce the issue (command/config used to run Dgraph).
Alpha can panic when the dataset includes UID 0. UID 0 isn't a valid UID in Dgraph. Based on the discussion, there are two issues here:
<0x0>
.<0x0>
.Normally, when Dgraph processes a mutation with
<0x0>
, an error is returned sayingUID has to be greater than one
:This error also shows up for regular mutations and with live loader.
Bulk loader does not return this error and writes UIDs
<0x0>
to the p directory.Steps to reproduce:
Download the g01.rdf.gz and g01.schema.gz RDF and schema data set from Discuss.
Start a Dgraph Zero
Run bulk loader with the dataset
Run Alpha with the bulk load p directory.
Remove the hash index and add it back:
Then, this panic shows up in Alpha, and restarting Alpha will show the same panic:
Expected behaviour
The Alpha should not export data with UID 0, and bulk loader should write successfully write data with UID 0.
The text was updated successfully, but these errors were encountered: