-
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
dgraph alpha painc with badger assert failed error #1369
Comments
Hey @QthCN, thanks for raising this issue. I'm aware of the bug and I'm working on trying to reproduce it on my end. How much data were you inserting? |
@jarifibrahim thanks for the response. I'm using dgraph for program analysis. I encounter this panic problem when I analysis openstack nova project's source code. The number of dgraph's node is the sum of nova's directory number + nova's file number + nova's all file's token. The number of dgraph's edge is the sum of all nova's tokens' relationship. For example, in the following program:
There are 9 node in dgraph:
and there are at least 3 edge in dgraph:
The dataset(dgraph disk space usage) of this project won't be very large, littler than 1GB maybe. But the add edge action(set symbol's relationship) will be execute one by one at very high speed. And the error happend when my analysis program executing these add edge action. |
@QthCN Can you confirm the on-disk size of badger directory? |
Hey @jarifibrahim , dgraph never finish my request...so I don't know th disk size usage exactly. I run my program again, and dgraph panic again. Before the running, filesystem disk usage:
after dgraph panic, filesystem disk usage:
I guess the p directory, w directory and zw directory are related to the dgraph(and badger), so the disk usage is around 1.5 GB. Here is the log for this running:
|
@QthCN Can you share your program with me with instructions on how to run it? Since I can't reproduce it I can't figure out what's going wrong. You can send me an email (Ibrahim[at]dgraph.io) if you're not comfortable sharing the code here. |
@jarifibrahim OK, I'll try to remove unreleated code and give you the code to reproduce the problem. Thank you. |
This is fixed in ristretto via dgraph-io/ristretto#167 and ristretto was updated in badger via #1391 . @QthCN we'll update badger in dgraph soon and that would fix this crash. |
What version of Go are you using (
go version
)?What operating system are you using?
I'm running a program using dgo on a mac, and running dgraph in a virtual box vm. vm operation system info:
What version of Badger are you using?
I'm runnig dgraph as the guide/linux said. From the output I guess the version of Badger is :
Does this issue reproduce with the latest master?
I don't know. I'm using the dgraph binary download page, and I download it yesterday.
Steps to Reproduce the issue
Write a lot of add edge request to dgraph, and dgraph panic with following error:
What Badger options were set?
I just running dgraph with following commands:
What did you do?
I'm running a program using dgo on a mac, and running dgraph in a virtual box vm. The program I'm working on will write a lot of add edge request to dgraph, and I found the dgraph panic sometime with a error stack about badger.
What did you expect to see?
dgraph running without panic.
What did you see instead?
dgraph alphaa log:
The text was updated successfully, but these errors were encountered: