influxdata / influxdb-client-go

InfluxDB 2 Go Client
MIT License
609 stars 116 forks source link

WritePoint function: panic send on Closed channel #405

Open XianwuLin opened 3 months ago

XianwuLin commented 3 months ago

Specifications

Steps to reproduce

  1. Use this library to continuously write data to influxdb
  2. kill influxdb
  3. sometimes program error: send on closed channel image

Expected behavior

Plugin should be able to correctly handle the situation where influxdb is closed and give an error instead of panic directly.

Actual behavior

panic image

Additional info

No response