Skip to content

WriteAPIImpl.WritePoint blocks on Encoding error #384

Open
@CLIN42

Description

@CLIN42

Specifications

  • Client Version: v2.12.3
  • InfluxDB Version: influxDB Cloud
  • Platform:AKS

Steps to reproduce

We're getting error influxdb2client E! point encoding error: no serializable fields while sending data to influx cloud. Strangely, after two exact errors, influxdb2client seems to be blocked without any logging.

It was found that in method WriteAPIImpl.WritePoint , Point will first be encoded, if that fails, error will be send to channel w.errCh <- err, which is never consumed. Because errCh is a buffered channel with lenth being 1, WritePoint blocks on the third encoding error

  1. Create a new writerAPI
  2. Create an empty write.Point
  3. call WritePoint on the writeAPI with empty Point

Expected behavior

empty point shouldn't block writing

Actual behavior

influxdb2client blocks forever after two errors influxdb2client E! point encoding error: no serializable fields

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions