-
Notifications
You must be signed in to change notification settings - Fork 478
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
Add return information for write #275
Comments
Must have feature for us too... |
I am happy to review PR's |
So why influxdb's java client doesn't provide the function of returning a status code for |
What should the status code look like ?
To have this information the write method must wait for all batchpoints to be written and will therefore be synchronous which is a disaster from performance perspective. Again if someone is willing to provide a PR im happy to review. |
To avoid to reduce write performance, perhaps the write method could implement an interface to be asynchronously notified of the write completion with a list of status for each points ? |
i think the the status code should be provided in From higher view, this influxdb-java API provides two ways of points writing: Just some personal idea :-) |
Just for reference HBase API allows you to batch async actions[1] and, by using an array passed as parameter to the batch call, get or inspect the result of every async call. As you can see here[2], every async call may result with:
[1] - https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Table.html#batch-java.util.List-java.lang.Object:A- |
Please look at #318, i think this simple approach is usable for most users and keep this code free of a lot of logic. |
When we use a write operation like : influxDB.write(batchPoints);
It will be very usefull to have a return object with the list of status (good/bad) for each write points operation.
The text was updated successfully, but these errors were encountered: