Commit b032344
committed
Do not retry on 413 response codes
Previously when Elasticsearch responds with a 413 (Payload Too Large) status,
the manticore adapter raises an error before the response can be processed
by the bulk_send error handling. This commit updates the adpapter to pass
through the response code without raising an exception so that it can be
properly handled. NOTE: this only applies to code 413 even though there may be
arguably other error codes that should not be retried. The scope of this work is
simply to 413 where we have explicit handling.1 parent de61518 commit b032344
File tree
1 file changed
+4
-3
lines changed- lib/logstash/outputs/elasticsearch/http_client
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | | - | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
0 commit comments