BBVA / qed

The scalable, auditable and high-performance tamper-evident log project
https://qed.readthedocs.io/
Apache License 2.0
96 stars 19 forks source link

panic: sync: WaitGroup misuse: Add called concurrently with Wait #117

Closed suizman closed 5 years ago

suizman commented 5 years ago

Under heavy load with bulk inserts QED throw this panic message:

panic: sync: WaitGroup misuse: Add called concurrently with Wait goroutine 6572101 [running]: sync.(WaitGroup).Add(0xc000203370, 0xffffffffffffffff) /usr/local/go/src/sync/waitgroup.go:88 +0xf9 sync.(WaitGroup).Done(0xc000203370) /usr/local/go/src/sync/waitgroup.go:99 +0x34 github.com/bbva/qed/gossip.(Agent).sender.func1.1(0xc000203370, 0xc000226000, 0xc081aa5e60) /go/src/github.com/bbva/qed/gossip/agent.go:279 +0xb6 created by github.com/bbva/qed/gossip.(Agent).sender.func1 /go/src/github.com/bbva/qed/gossip/agent.go:274 +0x10b panic: sync: WaitGroup misuse: Add called concurrently with Wait goroutine 6572107 [running]: sync.(WaitGroup).Add(0xc000203370, 0x1) /usr/local/go/src/sync/waitgroup.go:77 +0x117 github.com/bbva/qed/gossip.(Agent).sender.func1.1(0xc000203370, 0xc000226000, 0xc085c7f4d0) /go/src/github.com/bbva/qed/gossip/agent.go:275 +0x38 created by github.com/bbva/qed/gossip.(*Agent).sender.func1 /go/src/github.com/bbva/qed/gossip/agent.go:274 +0x10b