influxdb-client-go icon indicating copy to clipboard operation
influxdb-client-go copied to clipboard

coroutine safe in internal/write/service.go

Open hubugui opened this issue 3 years ago • 0 comments

Specifications

Client Version: v2.9.2 InfluxDB Version:v2.3.0 Platform:Ubuntu 20.04

internal/write/service.go

I see Write.go have Flush() and writeProc(), them maybe called at the same time, and HandleWrite() and Flush() didn't use a lock to protect retryQueue and write batch.

excuse me, is my understanding correct?

hubugui avatar Aug 12 '22 02:08 hubugui