Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
*(Cluster).Close(...) calls meter.close()
https://github.com/couchbase/gocb/blob/2f4a3976439522555613db93a66426872000d7a7/cluster.go#L415
*(LoggingMeter).close() attempts to send something to unbuffered channel
https://github.com/couchbase/gocb/blob/2f4a3976439522555613db93a66426872000d7a7/logging_meter.go#L181
Send blocks until *(LoggingMeter) loggerRoutine() reaches select statement
https://github.com/couchbase/gocb/blob/2f4a3976439522555613db93a66426872000d7a7/logging_meter.go#L97
Select statement may be unreachable in case of (link below)
https://github.com/couchbase/gocb/blob/2f4a3976439522555613db93a66426872000d7a7/logging_meter.go#L105
in practice this case happens too often
Attachments
For Gerrit Dashboard: GOCBC-1186 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
164356,4 | GOCBC-1186: Don't exit logging meter logger loop if nothing to record | master | gocb | Status: MERGED | +2 | +1 |