Skip to content

Commit 7f278b0

Browse files
authored
Merge pull request #6086 from influxdata/6071-chore-v2-partial-writes
fix(oss2): Troubleshoot partial writes for OSS v2 and Cloud
2 parents a424a92 + abcbefd commit 7f278b0

File tree

4 files changed

+373
-310
lines changed

4 files changed

+373
-310
lines changed

api-docs/influxdb/v2/v2/ref.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ tags:
218218
|:-----------:|:------------------------ |:--------------------- |
219219
| `200` | Success | |
220220
| `204` | Success. No content | InfluxDB doesn't return data for the request. |
221-
| `400` | Bad request | May indicate one of the following: <ul><li>Line protocol is malformed. The response body contains the first malformed line in the data and indicates what was expected. For partial writes, the number of points written and the number of points rejected are also included. For more information, check the `rejected_points` measurement in your `_monitoring` bucket.</li><li>`Authorization` header is missing or malformed or the API token doesn't have permission for the operation.</li></ul> |
221+
| `400` | Bad request | May indicate one of the following:<ul><li>the request body is malformed</li><li>`Authorization` header is missing or malformed</li><li>the API token doesn't have permission for the operation.</li></ul> |
222222
| `401` | Unauthorized | May indicate one of the following: <ul><li>`Authorization: Token` header is missing or malformed</li><li>API token value is missing from the header</li><li>API token doesn't have permission. For more information about token types and permissions, see [Manage API tokens](/influxdb/v2/security/tokens/)</li></ul> |
223223
| `404` | Not found | Requested resource was not found. `message` in the response body provides details about the requested resource. |
224224
| `413` | Request entity too large | Request payload exceeds the size limit. |
225-
| `422` | Unprocessable entity | Request data is invalid. `code` and `message` in the response body provide details about the problem. |
225+
| `422` | Unprocessable entity | Request data is invalid. The request was well-formed, but couldn't complete due to semantic errors--for example, some or all points in a write request were rejected due to a schema or retention policy violation. The response body provides details about the problem. For more information about rejected points, see how to [Troubleshoot issues writing data](/influxdb/v2/write-data/troubleshoot/)|
226226
| `429` | Too many requests | API token is temporarily over the request quota. The `Retry-After` header describes when to try the request again. |
227227
| `500` | Internal server error | |
228228
| `503` | Service unavailable | Server is temporarily unavailable to process the request. The `Retry-After` header describes when to try the request again. |
@@ -12752,6 +12752,12 @@ paths:
1275212752

1275312753
- Returns this error only if the [Go (golang) `ioutil.ReadAll()`](https://pkg.go.dev/io/ioutil#ReadAll) function raises an error.
1275412754
- Returns `Content-Type: application/json` for this error.
12755+
'422':
12756+
content:
12757+
application/json:
12758+
schema:
12759+
$ref: '#/components/schemas/Error'
12760+
description: The request was well-formed, but some or all the points were rejected due to semantic errors--for example, schema conflicts or retention policy violations. Error message contains details for one or more rejected points.
1275512761
'429':
1275612762
description: |
1275712763
Too many requests.
@@ -13190,6 +13196,14 @@ paths:
1319013196
- Legacy Query
1319113197
/write:
1319213198
post:
13199+
description: |-
13200+
Writes line protocol to the specified bucket.
13201+
13202+
This endpoint provides backward compatibility for InfluxDB 1.x write workloads using tools such as InfluxDB 1.x client libraries, the Telegraf `outputs.influxdb` output plugin, or third-party tools.
13203+
13204+
Use this endpoint to send data in [line protocol](https://docs.influxdata.com/influxdb/v2/reference/syntax/line-protocol/) format to InfluxDB.
13205+
Use query parameters to specify options for writing data.
13206+
1319313207
operationId: PostLegacyWrite
1319413208
parameters:
1319513209
- $ref: '#/components/parameters/TraceSpan'
@@ -13263,6 +13277,12 @@ paths:
1326313277
schema:
1326413278
$ref: '#/components/schemas/LineProtocolLengthError'
1326513279
description: Write has been rejected because the payload is too large. Error message returns max size supported. All data in body was rejected and not written.
13280+
'422':
13281+
content:
13282+
application/json:
13283+
schema:
13284+
$ref: '#/components/schemas/Error'
13285+
description: The request was well-formed, but some or all the points were rejected due to semantic errors--for example, schema conflicts or retention policy violations. Error message contains details for one or more rejected points.
1326613286
'429':
1326713287
description: Token is temporarily over quota. The Retry-After header describes when to try the write again.
1326813288
headers:

content/influxdb/cloud/write-data/troubleshoot.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ source: /shared/influxdb-v2/write-data/troubleshoot.md
1919
---
2020

2121
<!-- The content of this file is at
22-
// SOURCE content/shared/influxdb-v2/write-data/troubleshoot.md-->
22+
// SOURCE content/shared/influxdb-v2/write-data/troubleshoot.md
23+
-->

0 commit comments

Comments
 (0)