Skip to content
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

Write batching is unaware of transport message size limits #184

Open
simonaldrich opened this issue Mar 22, 2023 · 0 comments
Open

Write batching is unaware of transport message size limits #184

simonaldrich opened this issue Mar 22, 2023 · 0 comments

Comments

@simonaldrich
Copy link
Contributor

When writing batches of points to Influx (via the InfluxDB::batchOf mechanism) over UDP it is easy to accidentally exceed the maximum UDP packet size. This causes an exception to be raised in UDP::send which ultimately results in the loss of the entire batch of points.

I propose that InfluxDB::flushBatch should be aware of the largest message that can be transmitted over its Transport and sends the Points in the largest batch possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants