Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

[PubsubPluginSink] Drop requests greater than MAX_INPUT_METRICS #249

Merged
merged 1 commit into from
Feb 26, 2021

Conversation

lmuhlha
Copy link
Member

@lmuhlha lmuhlha commented Feb 26, 2021

No description provided.

final ByteString mResize = ByteString.copyFrom(serializer.serialize(l, writeCache));
publishPubSub(mResize);
} catch (Exception e) {
logger.error("Failed to serialize batch of metrics: ", e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we throw an HttpException where we're catching these exceptions?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is in the path of HTTP requests, the input plugins are done once ffwd has buffered the metrics internally.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I can throw an exception at that point, we'd need to figure out the size sooner somewhere upstream

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol hey william

@lmuhlha lmuhlha merged commit bc338c3 into master Feb 26, 2021
@delete-merged-branch delete-merged-branch bot deleted the moresizing branch February 26, 2021 20:40
@lmuhlha lmuhlha changed the title Drop requests greater than MAX_INPUT_METRICS [PubsubPluginSink] Drop requests greater than MAX_INPUT_METRICS Feb 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants