You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let write org bucket (callback: SeriesWriteEvent -> unit) (options: WriteOptions) (points: PointData array) =
log.Information("Writing {0} points in bucket {Organization}/{Bucket}", points.Length, org, bucket)
use wApi = client.GetWriteApi(options)
use _ = wApi.EventHandler |> Event.subscribe (fun (ea: EventArgs) ->
match ea with
| :? WriteSuccessEvent as ea -> BatchWritten options.BatchSize
| :? WriteErrorEvent as ea -> BatchError ea.Exception
| :? WriteRetriableErrorEvent as ea -> BatchRetry (ea.Exception, options.BatchSize, ea.RetryInterval)
| :? WriteRuntimeExceptionEvent as ea -> BatchError ea.Exception
|> callback)
try
wApi.WritePoints(points, bucket, org)
with | x -> log.Error(x, "Write Error")
The writing starts as expected. But, after a partial number of points is written (I am writing for example 200000 of the 1.5 million), the function returns without any error. The WriteSuccessEvent is called for 10 to 20 batches and then stops for a few seconds, and finally wApi.WritePoints simply returns without triggering any event (Retry or Error) nor throwing an exception.
The text was updated successfully, but these errors were encountered:
wApi.WritePoints simply returns without triggering any event (Retry or Error) nor throwing an exception.
Can you clarify what you think is happening. You said it fails silently in the title. Are you not seeing all data in influxdb? If you are running a local influxdb, do you see any errors in the logs?
If you do a packet capture do you see all the batches or any errors?
@powersj When I write "after a partial number of points is written" I mean that not all data are in influxdb after the end.
Influxdb is running in an AKS container, logs do not show anything strange, neither does the _monitoring bucket.
I am using the following F# code to write
The writing starts as expected. But, after a partial number of points is written (I am writing for example 200000 of the 1.5 million), the function returns without any error. The WriteSuccessEvent is called for 10 to 20 batches and then stops for a few seconds, and finally wApi.WritePoints simply returns without triggering any event (Retry or Error) nor throwing an exception.
The text was updated successfully, but these errors were encountered: