-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Description
When single point is repeatedly written using flushBuffer() and a server keeps returns retryable error, point finally reaches maximum retry count but than it is not possible to write another point:
Error, Wifi connection lost
08:46:36.433 -> 97.174 [W] Mirek - Preparing for flush 1073677324
08:46:36.433 -> 97.179 [D] Writing batch, batchpointer: 0, size 1
08:46:36.433 -> 97.183 [D] Writing to https://eu-central-1-1.aws.cloud2.influxdata.com/api/v2/[email protected]&bucket=iot_center&precision=s
08:46:36.433 -> 97.196 [D] Sending:
08:46:36.433 -> environment,clientId=b47f6944-5407-4354-b23f-02ebe6d18266,Device=ESP8266,TemperatureSensor=DS1820 Temperature=22.06,Lat=50.087325,Lon=14.407154 1604043965
08:46:36.433 ->
08:46:43.291 -> 104.061 [D] HTTP status code - -1
08:46:43.291 -> 104.061 [E] Error - connection failed
08:46:43.291 -> 104.061 [D] Reached max retry count, dropping batch
08:46:43.291 -> 104.062 [D] Droped batch, batchpointer: 1
08:46:43.291 -> 104.064 [D] Leaving data in buffer for retry, retryInterval: 0
08:46:43.291 -> Error, InfluxDB flush failed: connection failed
08:46:43.291 -> Wait: 2458
08:46:45.774 -> getTail head: 0 tail: 3 isEmpty: 0 isFull: 0
08:46:46.397 -> OneWire Temp: 22.06°C
08:46:46.397 -> Writing: environment,clientId=b47f6944-5407-4354-b23f-02ebe6d18266,Device=ESP8266,TemperatureSensor=DS1820 Temperature=22.06,Lat=50.087325,Lon=14.407154 1604044005
08:46:46.397 -> 107.167 [D] writeRecord: bufferPointer: 0, batchPointer: 1
08:46:46.626 -> Error, Wifi connection lost
08:46:46.626 -> 107.394 [W] Mirek - Preparing for flush 0
08:46:46.626 -> isBufferEmpty 0 isEmpty 0
08:46:46.626 -> Wait: 9137
08:46:55.772 -> getTail head: 0 tail: 3 isEmpty: 0 isFull: 0
08:46:56.401 -> OneWire Temp: 22.06°C
08:46:56.401 -> Writing to cBuffer: environment,clientId=b47f6944-5407-4354-b23f-02ebe6d18266,Device=ESP8266,TemperatureSensor=DS1820 Temperature=22.06,Lat=50.087325,Lon=14.407154 1604044015
08:46:56.401 -> enqueue tail: 4
08:46:56.401 -> cBuffer size: 5 of 5 empty: 0 full: 1
08:46:56.401 -> Error, Wifi connection lost
08:46:56.401 -> 117.176 [W] Mirek - Preparing for flush 0
08:46:56.401 -> isBufferEmpty 0 isEmpty 0
08:46:56.401 -> Wait: 9351
08:47:05.785 -> getTail head: 0 tail: 4 isEmpty: 0 isFull: 1
08:47:06.394 -> OneWire Temp: 22.06°C
08:47:06.394 -> Error, full cBuffer, dropping the oldest record
08:47:06.394 -> Writing to cBuffer: environment,clientId=b47f6944-5407-4354-b23f-02ebe6d18266,Device=ESP8266,TemperatureSensor=DS1820 Temperature=22.06,Lat=50.087325,Lon=14.407154 1604044025
08:47:06.394 -> pre-dequeue head: 0 tail: 4
08:47:06.394 -> dequeue head: 1
08:47:06.394 -> enqueue tail: 0
08:47:06.394 -> cBuffer size: 5 of 5 empty: 0 full: 1
08:47:06.653 -> Error, Wifi connection lost
08:47:06.653 -> 127.404 [W] Mirek - Preparing for flush 0
Metadata
Metadata
Assignees
Labels
No labels