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

500 error on writing to an invalid retention #21572

Open
MyaLongmire opened this issue May 26, 2021 · 0 comments
Open

500 error on writing to an invalid retention #21572

MyaLongmire opened this issue May 26, 2021 · 0 comments

Comments

@MyaLongmire
Copy link

MyaLongmire commented May 26, 2021

Writing data with an invaild rentention policy should result in a 4xx error that the client can understand not to retry sending the data. It's expected behavior that 5xx errors received by clients should result in the client re-transmitting the same data to avoid data loss.

This issue was raised by a customer here influxdata/telegraf/issues/9211

A very similar issue was raised here influxdata/influxdb/issues/20359

Steps to reproduce:

  1. setup influxdb v1
  2. curl with an invaild retention policy
    ex. curl "http://localhost:8186/write?db=telegraf&rp=invalid" -d "test value=1"

Expected behavior:
server responds with an error indicating client error, eg 4xx. such as. 406 Not Acceptable or some other error letting the user know it is an issue with what they are passing and not a server error

Actual behavior:
Server responds with 500 Internal Server Error

Environment info:

*InfluxDB version: 1.x

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

No branches or pull requests

1 participant