-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Slice bounds out of range error #37
Comments
Any idea how is this badger related, @pawanrawal? |
I am sure that it is related to badger because I couldn't reproduce it on master. I suspect somehow incomplete data for the key is getting written on disk. When we try to read it back in Dgraph and parse it we get out of bounds error. I have set There could also be something wrong with how its used within Dgraph https://github.com/dgraph-io/dgraph/blob/badger/worker/backup.go#L258. |
This is caused by the |
Agreed. Can you change the badger iterator to handle this case?
Sent from Nexus 6P
…On May 20, 2017 6:54 PM, "Pawan Rawal" ***@***.***> wrote:
This is caused by the /head/ key. While taking backup we go through all
keys and try to parse them. Since this key wasn't written from Dgraph we
cant parse it and hence get this error. This should ideally not be returned
to the user during iteration.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABsyNNH0LXyDw3ZPro7NpYsw0mPcC3g0ks5r7qpegaJpZM4NgZSV>
.
|
Sure, should we write the |
No, it has to go along with the .sst files. That's the only way to know how far LSM tree has reached. Update: You can also do some optimization, so if we are already past the |
This should now be fixed. |
Steps to reproduce
Compile and run dgraph on branch
badger
../dgraph
Load goldendata using dgraphloader.
./dgraphloader -r ~/go/src/github.com/dgraph-io/benchmarks/data/goldendata.rdf.gz
As soon as dgraphloader finishes, issue a shutdown command to server.
curl localhost:8080/admin/shutdown
Start Dgraph again.
./dgraph
Now try taking a backup.
curl localhost:8080/admin/backup
Dgraph panics with error
The text was updated successfully, but these errors were encountered: