You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
goroutinues won't leak and fd resources will be released.
Actual behavior
1. panic because the system runs out of fd. Ths system provides 1024 fd for every process by default, and pulsar-client holds all.
INFO[0002] [Connecting to broker] remote_addr="pulsar://127.0.0.1:6650"
WARN[0002] [Failed to connect to broker.] error="dial tcp 127.0.0.1:6650: socket: too many open files" remote_addr="pulsar://127.0.0.1:6650"
INFO[0002] [Connection closed] remote_addr="pulsar://127.0.0.1:6650"
panic: connection error
goroutine 37 [running]:
2. many goroutinues leak
If you change 10000 to 500(which will only set up 1000 TCP connections), and you can see the massive goroutinue leak in pprof.
Expected behavior
goroutinues won't leak and fd resources will be released.
Actual behavior
1. panic because the system runs out of fd. Ths system provides 1024 fd for every process by default, and pulsar-client holds all.
2. many goroutinues leak
If you change 10000 to 500(which will only set up 1000 TCP connections), and you can see the massive goroutinue leak in pprof.
ALL connections are leaking....
Steps to reproduce
How can we reproduce the issue
System configuration
Pulsar version: latest,
pulsar-client-go: 0.4.0
It's easy to reproduce and easy to fix, jus add one line in
client_impl.go
Close() function:The text was updated successfully, but these errors were encountered: