-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WriteAPI.Flush doesn't do what's expected #289
Comments
With #291 the observed behavior is:
|
@pabigot, thanks for using this client. You can customize its parameters to reach lower wait times, which will be more suitable for OSS server: E.g. client := influxdb2.NewClientWithOptions("http://localhost:8888", "token", influxdb2.DefaultOptions().WriteOptions().SetRetryInterval(1000)); |
@pabigot, v2.9.2 release added flushing of retry queue when calling |
Thanks; I ultimately gave up on |
Data loss occurs only when a batch is removed from the retry queue, either due to the max retry time or max retry attempt. I understood from your use case you would like also to force a retry attempt, right? |
@vlastahajek yes, that may be the only place that loses data without informing the application. I do want retry, but under complete application control. This branch has my approach, which needs documentation review before I might publish it.
I'm unlikely to go back to |
Steps to reproduce:
Expected behavior:
Upon flush the pending data from queued retries will be written to the server and new data will be promptly written as specified by the FlushInterval.
Actual behavior:
New data is queued in individual batches until the original retryDelay elapses, possibly causing data loss when the number of queued batches exceeds RetryBufferLimit / RetryBatchSize (10 by default).
Specifications:
The text was updated successfully, but these errors were encountered: