-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
According to new relic docs, a 413 http status code is send when The payload was too big. Payloads must be under 1MB (10^6 bytes).
Currently, BatchDataSender throws a RetryWithSplitException in case of this status code
Lines 179 to 185 in c72d6eb
| case 413: | |
| logger.warn( | |
| "Response from New Relic ingest API. Retry {} with split recommended.: code: {}, body: {}", | |
| batchType, | |
| response.getCode(), | |
| responseBody); | |
| throw new RetryWithSplitException(); |
And the TelemtryClient reacts by retrying the request with a split batch
newrelic-telemetry-sdk-java/telemetry-core/src/main/java/com/newrelic/telemetry/TelemetryClient.java
Lines 218 to 220 in c72d6eb
| } catch (RetryWithSplitException e) { | |
| splitAndSend(batchSender, batch, e); | |
| } catch (ResponseException e) { |
Problem: If the batch size = 1, this ends in an infinite loop.
Request should only be retried if batch can be split, so batch size > 1. Otherwise the payload is too big and there is no need for retrying.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels