-
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
500 error on writing data out of policy range #20359
Comments
Added @danxmoran for tracking what we'll need to add for OSS. |
this is the set of default errors allowed by the swagger definition |
@StacieClark do we have any timeline for this? |
I'm looking at it today. I'll let you know when I know what the fix is |
I configured a bucket to have a 1 hr retention policy against a cloud repo `curl -i -XPOST 'http://localhost:8080/api/v2/write?org=dev&bucket=1hr&precision=s' --header "Authorization: Token $INFLUX_TOKEN" --data-raw "note mod=13 1234567" HTTP/1.1 204 No Content So this is incorrect as well. |
this issue is not reproducible as a 500 error on cloud. On cloud it is 204. While not correct, it will not cause telegraf to go into a retry loop |
why are you getting |
That is local cluster. From an AWS cluster: curl -i -XPOST 'https://us-east-1-1.aws.cloud2.influxdata.com/api/v2/[email protected]&bucket=dev&precision=s' --header "Authorization: Token $INFLUX_TOKEN" --data-raw "note mod=15 12345" HTTP/2 204 |
Was this issue found on OSS and not cloud? |
I can confirm this is a problem on OSS |
@danxmoran In general, we should always be staying in sync with cloud. We can have a deeper discussion if there are aspects that aren't applicable to one or the other. In this case, we need to get it corrected in both cloud and OSS. |
Writing data outside of policy range 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#8571
Steps to reproduce:
I've configured a bucket with a retention policy of 2 weeks. When I write some measurements that are older than those two weeks, influxdb response with an 500 error.
Expected behavior:
server responds with an error indicating client error, eg 4xx. such as.
406 Not Acceptable
or422 Unprocessable Entity
Actual behavior:
Server responds with 500 Internal Server Error
Environment info:
Logs:
see logs from influxdata/telegraf#8571
The text was updated successfully, but these errors were encountered: