-
Notifications
You must be signed in to change notification settings - Fork 2k
fix(sinks): resolve memory leak by always setting a request builder concurrency limit #18637
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
Changes from all commits
4e8de9c
134fb9b
4416c6b
0fb4017
7ae0fca
84fa752
4876f76
fd32323
8e12468
09930ec
76dc42a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,6 @@ | ||
| use futures::{stream::BoxStream, StreamExt}; | ||
| use futures_util::future::ready; | ||
| use tower::{Service, ServiceBuilder}; | ||
| use vector_core::{ | ||
| event::Event, | ||
| sink::StreamSink, | ||
| stream::{BatcherSettings, DriverResponse}, | ||
| }; | ||
|
|
||
| use crate::{ | ||
| codecs::Transformer, | ||
| internal_events::SinkRequestBuildError, | ||
| sinks::util::{buffer::metrics::MetricNormalizer, builder::SinkBuilderExt, Compression}, | ||
| }; | ||
| use crate::sinks::{prelude::*, util::buffer::metrics::MetricNormalizer}; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this prelude new? I can't say I'm a huge fan, but I think that's a difference conversation.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's relatively new. It existed before I joined a few months ago. |
||
|
|
||
| use super::{ | ||
| encoder::AppsignalEncoder, | ||
|
|
@@ -47,7 +36,7 @@ where | |
| }) | ||
| .batched(self.batch_settings.into_byte_size_config()) | ||
| .request_builder( | ||
| None, | ||
| default_request_builder_concurrency_limit(), | ||
| AppsignalRequestBuilder { | ||
| compression: self.compression, | ||
| encoder: AppsignalEncoder { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed flakey test.