It has two version to show the bugs in different dgraph version.
first version:
···
Decoder]: Using assembly version of decoder
Dgraph version : v20.07.2
Dgraph codename : shuri-2
Dgraph SHA-256 : a927845127dab735c24727d5a24af411168771b55236aec50f0b987e8c0ac910
Commit SHA-1 : a7bc16d56
Commit timestamp : 2020-10-22 10:17:53 -0700
Branch : HEAD
Go version : go1.14.4
For Dgraph official documentation, visit Get started with Dgraph.
For discussions about Dgraph , visit http://discuss.dgraph.io.
To say hi to the community , visit https://dgraph.slack.com.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2020 Dgraph Labs, Inc.
···
it panic and exit
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x150723e]
goroutine 23283 [running]:
github.com/dgraph-io/dgraph/posting.(*pIterator).posting(0xc081dab450, 0xc0714e9601)
/ext-go/1/src/github.com/dgraph-io/dgraph/posting/list.go:273 +0x6e
github.com/dgraph-io/dgraph/posting.(*List).iterate(0xc0714e96e0, 0x178b, 0x0, 0xc081dab520, 0x1, 0x0)
/ext-go/1/src/github.com/dgraph-io/dgraph/posting/list.go:684 +0x3fe
github.com/dgraph-io/dgraph/posting.(*List).IsEmpty(0xc0714e96e0, 0x178b, 0x0, 0xc0709ea200, 0x0, 0x0)
/ext-go/1/src/github.com/dgraph-io/dgraph/posting/list.go:744 +0xc6
github.com/dgraph-io/dgraph/worker.(*queryState).handleHasFunction(0xc060e63110, 0x1ec40c0, 0xc07e6b26f0, 0xc06c4888c0, 0xc0709ea210, 0xc06b839e00, 0x0, 0x0)
/ext-go/1/src/github.com/dgraph-io/dgraph/worker/task.go:2302 +0xaf9
github.com/dgraph-io/dgraph/worker.(*queryState).helpProcessTask(0xc060e63110, 0x1ec40c0, 0xc07e6b26f0, 0xc06c4888c0, 0x1, 0x0, 0x0, 0x0)
/ext-go/1/src/github.com/dgraph-io/dgraph/worker/task.go:976 +0x3c6
github.com/dgraph-io/dgraph/worker.processTask(0x1ec40c0, 0xc07e6b26f0, 0xc06c4888c0, 0x1, 0x0, 0x0, 0x0)
/ext-go/1/src/github.com/dgraph-io/dgraph/worker/task.go:890 +0x3ed
github.com/dgraph-io/dgraph/worker.ProcessTaskOverNetwork(0x1ec40c0, 0xc07f6278f0, 0xc06c4888c0, 0x0, 0x9, 0xc071591dc0)
/ext-go/1/src/github.com/dgraph-io/dgraph/worker/task.go:150 +0x35a
github.com/dgraph-io/dgraph/query.ProcessGraph(0x1ec40c0, 0xc07f6278f0, 0xc050106c00, 0x0, 0xc06e8e3320)
/ext-go/1/src/github.com/dgraph-io/dgraph/query/query.go:2049 +0x19e4
created by github.com/dgraph-io/dgraph/query.(*Request).ProcessQuery
/ext-go/1/src/github.com/dgraph-io/dgraph/query/query.go:2716 +0x899
[Sentry] 2020/11/11 18:38:00 Sending fatal event [9936d1f9fa38469b99f9340955335957] to o318308.ingest.sentry.io project: 1805390
[Sentry] 2020/11/11 18:38:02 Buffer flushing reached the timeout.
second version:
···
./dgraph_release_v20.07.1 live -f …/data/1__3000000.rdf
Using z.Allocator with starting ref: d72c000000000000
[Decoder]: Using assembly version of decoder
Page Size: 4096
I1111 18:49:10.608026 8198 init.go:107]
Dgraph version : v2.0.0-rc1-888-gbfeb0ebc3
Dgraph codename : unnamed-mod
Dgraph SHA-256 : 989426f9ed941c6f73c50d2a8e6e941533642920111b6ea5cae351b079132ace
Commit SHA-1 : bfeb0ebc3
Commit timestamp : 2020-11-03 16:37:10 +0800
Branch : release/v20.07.1
Go version : go1.14.1
jemalloc enabled : true
For Dgraph official documentation, visit Get started with Dgraph.
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.
I1111 18:49:10.608481 8198 util_ee.go:126] KeyReader instantiated of type
Running transaction with dgraph endpoint: 127.0.0.1:9080
Found 1 data file(s) to process
Processing data file “…/data/1__3000000.rdf”
[18:49:15+0800] Elapsed: 05s Txns: 345 N-Quads: 345000 N-Quads/s [last 5s]: 69000 Aborts: 0
[18:49:20+0800] Elapsed: 10s Txns: 700 N-Quads: 700000 N-Quads/s [last 5s]: 71000 Aborts: 0
[18:49:25+0800] Elapsed: 15s Txns: 1020 N-Quads: 1020000 N-Quads/s [last 5s]: 64000 Aborts: 0
[18:49:30+0800] Elapsed: 20s Txns: 1363 N-Quads: 1363000 N-Quads/s [last 5s]: 68600 Aborts: 0
[18:49:35+0800] Elapsed: 25s Txns: 1634 N-Quads: 1634000 N-Quads/s [last 5s]: 54200 Aborts: 0
[18:49:40+0800] Elapsed: 30s Txns: 1990 N-Quads: 1990000 N-Quads/s [last 5s]: 71200 Aborts: 0
[18:49:45+0800] Elapsed: 35s Txns: 2287 N-Quads: 2287000 N-Quads/s [last 5s]: 59400 Aborts: 0
[18:49:50+0800] Elapsed: 40s Txns: 2527 N-Quads: 2527000 N-Quads/s [last 5s]: 48000 Aborts: 0
[18:49:55+0800] Elapsed: 45s Txns: 2781 N-Quads: 2781000 N-Quads/s [last 5s]: 50800 Aborts: 0
Number of TXs run : 3000
Number of N-Quads processed : 3000000
Time spent : 49.564251439s
N-Quads processed per second : 61224
Allocated Bytes at program end: 0 B
➜ v2 git:(master) ✗ ls
dgraph_release_v20.07.1 p w zw
➜ v2 git:(master) ✗ cd …
➜ bugs-for-delete git:(master) ✗ cd code
➜ code git:(master) ✗ ls
q.go
➜ code git:(master) ✗ go run q.go
2020/11/11 18:50:41 Before Delete Query:
2020/11/11 18:50:41 Response: {
“q”: [
{
“uid”: “0x2”,
“c”: 3000000
}
]
}
2020/11/11 18:50:41 <0x2> * .
Response:
2020/11/11 18:50:41 After Delete Query:
2020/11/11 18:50:41 Response: {
“q”: [
{
“uid”: “0x2”,
“c”: 8
}
]
}
2020/11/11 18:50:41 should be zero ,but got 8
···
Here is the github repo for reproduce this bug.