-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fix client.Write function #1849
Conversation
@d2g - None of these other pull requests change the way data is written to the server. The server is not expecting an array of writes, just one write with multiple points. They also don't treat the server response correctly. |
@vladlopes in #1662 Cory's comment @d2g states that it should support both a single and an array. I'm sure when one of the influxdb team gets some focus on this area they'll see the issues and provide some direction so we can contribute in moving the client forward. |
Sorry I haven't been responsive to this issue. I've been on vacation this week. I get back in the office tomorrow and I'll get on this first thing. At first glance, this looks good. I want to add some more testing to show how this endpoint should be used for a single write, or by keeping the http connection open and streaming multiple batch writes without closing it down. I think that should give better clarity to how this endpoint can be used, as well as keep test coverage going. It's also fair to note that this endpoint was written prior to us supporting precision, so it looks like when we added that feature, this did not get updated as a result (my bad). I'll try to make sure if we make changes to the data structure for writing data in the future this endpoint is updated as part of that request. Thanks for all your hard work and hopefully we'll get this merged in a day or two once I write more integration tests around it. |
👍 have the same issue. waiting to merge this PR |
I would like also to give some more ideas to improve the client/server writing (I don't know if we should open a new issue for this):
|
It would appear that the Seems fair that the omitempty could be added. Agree that moving this to a separate PR is appropriate, as it allows this immediate issue to get resolved, followed up by the next one. |
Closing this issue. It is being addressed in pr #1868 with a little bit different approach. Feel free to comment on that PR with any questions/suggestions. |
Fix #1844
Besides those issues raised by georgmu, I have found that: