Skip to content
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

fix(file source): make FinalizerSet optionally handle shutdown signals #16928

Merged
merged 6 commits into from
Mar 30, 2023

Conversation

jches
Copy link
Contributor

@jches jches commented Mar 23, 2023

This fixes a problem where, when Vector receives a shutdown signal, sources may not process acknowledgements for messages that have been processed, because the FinalizerSet implementation stops processing entries as soon as the shutdown signal is received.

In principle, FinalizerSet should not need to listen for shutdown signals, and should instead rely on the source closing sender side of the "new acknowledgement entry" channel on shutdown. However, it may currently be the case that some sources do not close that channel as expected, and hence unintentionally rely on the FinalizerSet ending to exit properly. Since removing shutdown signal handling from FinalizerSet may cause some sources to block indefinitely, this change makes the ShutdownSignal parameter optional, and most sources using it pass in a Some to preserve their current behavior.

Only the file source is updated here to pass None, opting out of shutdown handling by the acknowledgement stream, and the file-source code is updated to ensure the acknowledgement sender channel is closed at shutdown.

This is intended to update/replace (in part) a previous PR related to this bug: #14846. See also discussion in #16827 for more details.

@jches jches requested a review from StephenWakely as a code owner March 23, 2023 16:41
@jches jches requested a review from a team March 23, 2023 16:41
@jches jches requested a review from a team March 23, 2023 16:41
@netlify
Copy link

netlify bot commented Mar 23, 2023

Deploy Preview for vector-project canceled.

Name Link
🔨 Latest commit 54c8c06
🔍 Latest deploy log https://app.netlify.com/sites/vector-project/deploys/6424a87523d5570008fb2d19

@netlify
Copy link

netlify bot commented Mar 23, 2023

Deploy Preview for vrl-playground ready!

Name Link
🔨 Latest commit 988a760
🔍 Latest deploy log https://app.netlify.com/sites/vrl-playground/deploys/641c812266bd5a00087937fc
😎 Deploy Preview https://deploy-preview-16928--vrl-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the domain: sources Anything related to the Vector's sources label Mar 23, 2023
@github-actions
Copy link

Regression Detector Results

Run ID: 9edb3990-96a9-432a-9eb8-4d5c8f6a292e
Baseline: befedfe
Comparison: 988a760
Total vector CPUs: 7

Explanation

A regression test is an integrated performance test for vector in a repeatable rig, with varying configuration for vector. What follows is a statistical summary of a brief vector run for each configuration across SHAs given above. The goal of these tests are to determine quickly if vector performance is changed and to what degree by a pull request.

The table below, if present, lists those experiments that have experienced a statistically significant change in mean optimization goal performance between baseline and comparison SHAs with 90.00% confidence OR have been detected as newly erratic. Negative values mean that baseline is faster, positive comparison. Results that do not exhibit more than a ±5.00% change in their mean optimization goal are discarded. An experiment is erratic if its coefficient of variation is greater than 0.1. The abbreviated table will be omitted if no interesting change is observed.

No interesting changes in experiment optimization goals with confidence ≥ 90.00% and |Δ mean %| ≥ 5.00%.

Fine details of change detection per experiment.
experiment goal Δ mean Δ mean % confidence baseline mean baseline stdev baseline stderr baseline outlier % baseline CoV comparison mean comparison stdev comparison stderr comparison outlier % comparison CoV erratic declared erratic
file_to_blackhole egress throughput 513.75KiB/CPU-s 8.29 99.65% 6.05MiB/CPU-s 4.3MiB/CPU-s 121.63KiB/CPU-s 0.0 0.710229 6.55MiB/CPU-s 4.41MiB/CPU-s 126.92KiB/CPU-s 1.579779 0.672756 True True
socket_to_socket_blackhole ingress throughput 228.91KiB/CPU-s 1.71 100.00% 13.06MiB/CPU-s 317.21KiB/CPU-s 3.9KiB/CPU-s 0.0 0.023726 13.28MiB/CPU-s 237.33KiB/CPU-s 2.92KiB/CPU-s 0.0 0.017452 False False
http_text_to_http_json ingress throughput 392.26KiB/CPU-s 1.60 100.00% 23.91MiB/CPU-s 562.52KiB/CPU-s 6.92KiB/CPU-s 0.0 0.022975 24.29MiB/CPU-s 468.05KiB/CPU-s 5.76KiB/CPU-s 0.0 0.018815 False False
http_to_http_acks ingress throughput 59.97KiB/CPU-s 1.15 79.36% 5.11MiB/CPU-s 2.66MiB/CPU-s 33.51KiB/CPU-s 0.0 0.520881 5.16MiB/CPU-s 2.67MiB/CPU-s 33.61KiB/CPU-s 0.0 0.516323 True False
syslog_loki ingress throughput 94.25KiB/CPU-s 1.11 100.00% 8.29MiB/CPU-s 339.55KiB/CPU-s 4.18KiB/CPU-s 0.0 0.039998 8.38MiB/CPU-s 217.33KiB/CPU-s 2.67KiB/CPU-s 0.0 0.02532 False False
syslog_humio_logs ingress throughput 98.44KiB/CPU-s 1.07 100.00% 9.01MiB/CPU-s 169.17KiB/CPU-s 2.08KiB/CPU-s 0.0 0.01834 9.1MiB/CPU-s 198.13KiB/CPU-s 2.44KiB/CPU-s 0.0 0.021253 False False
syslog_log2metric_humio_metrics ingress throughput 47.49KiB/CPU-s 0.75 100.00% 6.19MiB/CPU-s 315.49KiB/CPU-s 3.88KiB/CPU-s 0.0 0.049733 6.24MiB/CPU-s 191.75KiB/CPU-s 2.36KiB/CPU-s 0.0 0.030003 False False
splunk_hec_route_s3 ingress throughput 52.16KiB/CPU-s 0.45 100.00% 11.43MiB/CPU-s 659.4KiB/CPU-s 8.11KiB/CPU-s 0.0 0.056354 11.48MiB/CPU-s 646.51KiB/CPU-s 7.95KiB/CPU-s 0.0 0.055007 False False
syslog_splunk_hec_logs ingress throughput 39.42KiB/CPU-s 0.44 100.00% 8.84MiB/CPU-s 243.6KiB/CPU-s 3.0KiB/CPU-s 0.0 0.02691 8.88MiB/CPU-s 253.08KiB/CPU-s 3.11KiB/CPU-s 0.0 0.027837 False False
otlp_http_to_blackhole ingress throughput 6.57KiB/CPU-s 0.43 99.64% 1.49MiB/CPU-s 130.9KiB/CPU-s 1.61KiB/CPU-s 0.0 0.085553 1.5MiB/CPU-s 128.82KiB/CPU-s 1.59KiB/CPU-s 0.0 0.083835 False False
syslog_log2metric_splunk_hec_metrics ingress throughput 39.72KiB/CPU-s 0.41 100.00% 9.4MiB/CPU-s 110.83KiB/CPU-s 1.36KiB/CPU-s 0.0 0.011509 9.44MiB/CPU-s 167.0KiB/CPU-s 2.05KiB/CPU-s 0.0 0.017271 False False
enterprise_http_to_http ingress throughput 5.52KiB/CPU-s 0.04 87.75% 13.62MiB/CPU-s 247.68KiB/CPU-s 3.05KiB/CPU-s 0.0 0.017759 13.62MiB/CPU-s 151.86KiB/CPU-s 1.87KiB/CPU-s 0.0 0.010884 False False
datadog_agent_remap_datadog_logs_acks ingress throughput 11.7KiB/CPU-s 0.04 46.62% 32.48MiB/CPU-s 1.09MiB/CPU-s 13.7KiB/CPU-s 0.0 0.033478 32.49MiB/CPU-s 1.02MiB/CPU-s 12.87KiB/CPU-s 0.0 0.031437 False False
http_to_http_noack ingress throughput 1.9KiB/CPU-s 0.01 24.73% 13.61MiB/CPU-s 356.51KiB/CPU-s 4.39KiB/CPU-s 0.0 0.025579 13.61MiB/CPU-s 336.04KiB/CPU-s 4.13KiB/CPU-s 0.0 0.024108 False False
http_to_http_json ingress throughput -401.84B/CPU-s -0.00 7.03% 13.61MiB/CPU-s 261.62KiB/CPU-s 3.22KiB/CPU-s 0.0 0.018771 13.61MiB/CPU-s 249.54KiB/CPU-s 3.07KiB/CPU-s 0.0 0.017905 False False
fluent_elasticsearch ingress throughput -37.03B/CPU-s -0.00 5.56% 45.41MiB/CPU-s 29.73KiB/CPU-s 370.59B/CPU-s 0.0 0.000639 45.41MiB/CPU-s 30.55KiB/CPU-s 380.64B/CPU-s 0.0 0.000657 False False
splunk_hec_to_splunk_hec_logs_acks ingress throughput 138.54B/CPU-s 0.00 1.67% 13.61MiB/CPU-s 359.66KiB/CPU-s 4.42KiB/CPU-s 0.0 0.025797 13.61MiB/CPU-s 383.88KiB/CPU-s 4.72KiB/CPU-s 0.0 0.027534 False False
splunk_hec_indexer_ack_blackhole ingress throughput -1.18KiB/CPU-s -0.01 20.68% 13.62MiB/CPU-s 254.67KiB/CPU-s 3.13KiB/CPU-s 0.0 0.018263 13.62MiB/CPU-s 261.73KiB/CPU-s 3.22KiB/CPU-s 0.0 0.018771 False False
splunk_hec_to_splunk_hec_logs_noack ingress throughput -2.37KiB/CPU-s -0.02 39.43% 13.62MiB/CPU-s 255.01KiB/CPU-s 3.14KiB/CPU-s 0.0 0.018288 13.61MiB/CPU-s 271.63KiB/CPU-s 3.34KiB/CPU-s 0.0 0.019482 False False
datadog_agent_remap_blackhole_acks ingress throughput -18.1KiB/CPU-s -0.05 82.52% 32.23MiB/CPU-s 909.28KiB/CPU-s 11.19KiB/CPU-s 0.0 0.027549 32.21MiB/CPU-s 589.63KiB/CPU-s 7.26KiB/CPU-s 0.0 0.017874 False False
otlp_grpc_to_blackhole ingress throughput -5.57KiB/CPU-s -0.53 100.00% 1.02MiB/CPU-s 51.83KiB/CPU-s 652.92B/CPU-s 0.0 0.049813 1.01MiB/CPU-s 47.68KiB/CPU-s 600.78B/CPU-s 0.0 0.046071 False False
datadog_agent_remap_datadog_logs ingress throughput -303.81KiB/CPU-s -0.91 100.00% 32.51MiB/CPU-s 973.83KiB/CPU-s 11.98KiB/CPU-s 0.0 0.029249 32.21MiB/CPU-s 1.09MiB/CPU-s 13.68KiB/CPU-s 0.0 0.03371 False False
datadog_agent_remap_blackhole ingress throughput -375.42KiB/CPU-s -1.18 100.00% 31.17MiB/CPU-s 1.42MiB/CPU-s 17.82KiB/CPU-s 0.0 0.045394 30.8MiB/CPU-s 1.33MiB/CPU-s 16.75KiB/CPU-s 0.0 0.043138 False False
syslog_regex_logs2metric_ddmetrics ingress throughput -75.58KiB/CPU-s -2.15 100.00% 3.44MiB/CPU-s 393.01KiB/CPU-s 4.84KiB/CPU-s 0.0 0.111665 3.36MiB/CPU-s 438.41KiB/CPU-s 5.4KiB/CPU-s 0.0 0.127298 True True

Copy link
Member

@bruceg bruceg left a comment

Choose a reason for hiding this comment

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

The code looks reasonable. I left comments about a couple of concerns below.

let (finalizer, mut stream) = OrderedFinalizer::new(ShutdownSignal::noop());
let (finalizer, mut stream) = OrderedFinalizer::new(None);
Copy link
Member

Choose a reason for hiding this comment

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

Should this not be Some here too, at least for now? The description says only the file source is being modified.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, yes I should have mentioned this case too. If I understand correctly, ShutdownSignal::noop() gives back a ShutdownSignal that is not attached to the global shutdown trigger, and can't be triggered externally. In this case, I believe this "noop" ShutdownSignal should be functionally equivalent to passing None, since it can't be signaled until the finalizer stream that owns it is dropped?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FWIW, after adding a unit test for the file source, I ran those tests locally using Some(ShutdownSignal::noop()) in the file source ack stream, and that also fixes the bug - evidence that it is indeed equivalent to passing None.

That said, if there is a concern with including this change here I'm happy to revert this line for now.

src/sources/file.rs Show resolved Hide resolved
@bruceg bruceg added type: bug A code related bug. source: file Anything `file` source related labels Mar 24, 2023
@github-actions
Copy link

Regression Detector Results

Run ID: 1cc8752d-d53e-47d1-a760-00103589b180
Baseline: 11cb5f7
Comparison: 3756619
Total vector CPUs: 7

Explanation

A regression test is an integrated performance test for vector in a repeatable rig, with varying configuration for vector. What follows is a statistical summary of a brief vector run for each configuration across SHAs given above. The goal of these tests are to determine quickly if vector performance is changed and to what degree by a pull request.

The table below, if present, lists those experiments that have experienced a statistically significant change in mean optimization goal performance between baseline and comparison SHAs with 90.00% confidence OR have been detected as newly erratic. Negative values mean that baseline is faster, positive comparison. Results that do not exhibit more than a ±5.00% change in their mean optimization goal are discarded. An experiment is erratic if its coefficient of variation is greater than 0.1. The abbreviated table will be omitted if no interesting change is observed.

No interesting changes in experiment optimization goals with confidence ≥ 90.00% and |Δ mean %| ≥ 5.00%.

Fine details of change detection per experiment.
experiment goal Δ mean Δ mean % confidence baseline mean baseline stdev baseline stderr baseline outlier % baseline CoV comparison mean comparison stdev comparison stderr comparison outlier % comparison CoV erratic declared erratic
datadog_agent_remap_blackhole ingress throughput 455.77KiB/CPU-s 1.43 100.00% 31.04MiB/CPU-s 1.26MiB/CPU-s 15.84KiB/CPU-s 0.0 0.040513 31.49MiB/CPU-s 1006.22KiB/CPU-s 12.38KiB/CPU-s 0.0 0.031206 False False
syslog_log2metric_humio_metrics ingress throughput 70.58KiB/CPU-s 1.12 100.00% 6.17MiB/CPU-s 249.58KiB/CPU-s 3.07KiB/CPU-s 0.0 0.039513 6.24MiB/CPU-s 186.0KiB/CPU-s 2.29KiB/CPU-s 0.0 0.029122 False False
syslog_humio_logs ingress throughput 89.28KiB/CPU-s 0.97 100.00% 8.96MiB/CPU-s 163.75KiB/CPU-s 2.01KiB/CPU-s 0.0 0.017839 9.05MiB/CPU-s 242.02KiB/CPU-s 2.98KiB/CPU-s 0.0 0.026111 False False
syslog_log2metric_splunk_hec_metrics ingress throughput 90.96KiB/CPU-s 0.96 100.00% 9.3MiB/CPU-s 252.4KiB/CPU-s 3.11KiB/CPU-s 0.0 0.026505 9.39MiB/CPU-s 191.2KiB/CPU-s 2.35KiB/CPU-s 0.0 0.019888 False False
datadog_agent_remap_blackhole_acks ingress throughput 211.25KiB/CPU-s 0.66 100.00% 31.29MiB/CPU-s 1.04MiB/CPU-s 13.11KiB/CPU-s 0.0 0.033267 31.49MiB/CPU-s 765.16KiB/CPU-s 9.42KiB/CPU-s 0.0 0.023726 False False
http_to_http_acks ingress throughput 24.58KiB/CPU-s 0.46 38.99% 5.26MiB/CPU-s 2.69MiB/CPU-s 33.93KiB/CPU-s 0.0 0.512342 5.28MiB/CPU-s 2.72MiB/CPU-s 34.23KiB/CPU-s 0.0 0.514545 True False
otlp_http_to_blackhole ingress throughput 2.37KiB/CPU-s 0.15 74.56% 1.53MiB/CPU-s 122.9KiB/CPU-s 1.51KiB/CPU-s 0.0 0.078685 1.53MiB/CPU-s 115.81KiB/CPU-s 1.43KiB/CPU-s 0.0 0.074036 False False
enterprise_http_to_http ingress throughput 13.47KiB/CPU-s 0.10 99.66% 13.61MiB/CPU-s 342.01KiB/CPU-s 4.21KiB/CPU-s 0.0 0.024536 13.62MiB/CPU-s 151.17KiB/CPU-s 1.86KiB/CPU-s 0.0 0.010835 False False
syslog_splunk_hec_logs ingress throughput 8.36KiB/CPU-s 0.09 97.16% 8.9MiB/CPU-s 221.21KiB/CPU-s 2.72KiB/CPU-s 0.0 0.024257 8.91MiB/CPU-s 217.38KiB/CPU-s 2.67KiB/CPU-s 0.0 0.023815 False False
splunk_hec_route_s3 ingress throughput 6.86KiB/CPU-s 0.06 53.86% 11.69MiB/CPU-s 530.25KiB/CPU-s 6.52KiB/CPU-s 0.0 0.044307 11.69MiB/CPU-s 539.47KiB/CPU-s 6.64KiB/CPU-s 0.0 0.045051 False False
http_to_http_noack ingress throughput 5.64KiB/CPU-s 0.04 68.37% 13.61MiB/CPU-s 352.02KiB/CPU-s 4.33KiB/CPU-s 0.0 0.025257 13.61MiB/CPU-s 292.63KiB/CPU-s 3.6KiB/CPU-s 0.0 0.020988 False False
syslog_loki ingress throughput 3.23KiB/CPU-s 0.04 54.59% 8.36MiB/CPU-s 281.51KiB/CPU-s 3.46KiB/CPU-s 0.0 0.032894 8.36MiB/CPU-s 208.57KiB/CPU-s 2.57KiB/CPU-s 0.0 0.024362 False False
splunk_hec_to_splunk_hec_logs_noack ingress throughput 1.03KiB/CPU-s 0.01 18.19% 13.62MiB/CPU-s 260.34KiB/CPU-s 3.2KiB/CPU-s 0.0 0.018671 13.62MiB/CPU-s 252.94KiB/CPU-s 3.11KiB/CPU-s 0.0 0.018139 False False
splunk_hec_indexer_ack_blackhole ingress throughput 1010.08B/CPU-s 0.01 17.33% 13.61MiB/CPU-s 260.67KiB/CPU-s 3.21KiB/CPU-s 0.0 0.018696 13.62MiB/CPU-s 257.19KiB/CPU-s 3.16KiB/CPU-s 0.0 0.018445 False False
fluent_elasticsearch ingress throughput 189.17B/CPU-s 0.00 27.48% 45.41MiB/CPU-s 30.62KiB/CPU-s 381.62B/CPU-s 0.0 0.000658 45.41MiB/CPU-s 30.43KiB/CPU-s 379.36B/CPU-s 0.0 0.000654 False False
http_to_http_json ingress throughput -459.47B/CPU-s -0.00 9.04% 13.62MiB/CPU-s 227.45KiB/CPU-s 2.8KiB/CPU-s 0.0 0.016306 13.62MiB/CPU-s 227.02KiB/CPU-s 2.79KiB/CPU-s 0.0 0.016275 False False
splunk_hec_to_splunk_hec_logs_acks ingress throughput -103.52B/CPU-s -0.00 1.29% 13.61MiB/CPU-s 351.3KiB/CPU-s 4.32KiB/CPU-s 0.0 0.025198 13.61MiB/CPU-s 365.09KiB/CPU-s 4.49KiB/CPU-s 0.0 0.026187 False False
syslog_regex_logs2metric_ddmetrics ingress throughput -2.21KiB/CPU-s -0.06 21.71% 3.78MiB/CPU-s 468.2KiB/CPU-s 5.76KiB/CPU-s 0.0 0.120853 3.78MiB/CPU-s 454.85KiB/CPU-s 5.6KiB/CPU-s 0.0 0.117475 True True
otlp_grpc_to_blackhole ingress throughput -10.49KiB/CPU-s -1.00 100.00% 1.02MiB/CPU-s 50.83KiB/CPU-s 640.31B/CPU-s 0.0 0.048449 1.01MiB/CPU-s 47.44KiB/CPU-s 597.75B/CPU-s 0.0 0.045675 False False
datadog_agent_remap_datadog_logs_acks ingress throughput -451.33KiB/CPU-s -1.35 100.00% 32.7MiB/CPU-s 866.69KiB/CPU-s 10.66KiB/CPU-s 0.0 0.025879 32.26MiB/CPU-s 1.18MiB/CPU-s 14.88KiB/CPU-s 0.0 0.036607 False False
socket_to_socket_blackhole ingress throughput -238.66KiB/CPU-s -1.73 100.00% 13.44MiB/CPU-s 243.9KiB/CPU-s 3.0KiB/CPU-s 0.0 0.01772 13.21MiB/CPU-s 233.74KiB/CPU-s 2.88KiB/CPU-s 0.0 0.017281 False False
datadog_agent_remap_datadog_logs ingress throughput -735.78KiB/CPU-s -2.20 100.00% 32.69MiB/CPU-s 1.02MiB/CPU-s 12.88KiB/CPU-s 0.0 0.031283 31.97MiB/CPU-s 1.18MiB/CPU-s 14.84KiB/CPU-s 0.0 0.036833 False False
http_text_to_http_json ingress throughput -560.15KiB/CPU-s -2.25 100.00% 24.34MiB/CPU-s 528.32KiB/CPU-s 6.5KiB/CPU-s 0.0 0.021195 23.79MiB/CPU-s 645.96KiB/CPU-s 7.95KiB/CPU-s 0.0 0.02651 False False
file_to_blackhole egress throughput -830.69KiB/CPU-s -11.10 100.00% 7.31MiB/CPU-s 4.08MiB/CPU-s 129.44KiB/CPU-s 5.854127 0.557993 6.5MiB/CPU-s 4.59MiB/CPU-s 127.93KiB/CPU-s 0.0 0.7067 True True

@jches jches requested review from bruceg and removed request for StephenWakely, spencergilbert and davidhuie-dd March 29, 2023 17:52
@github-actions
Copy link

Regression Detector Results

Run ID: 1c121c44-576a-4be1-9ffb-c5d6182c50b6
Baseline: 0c22536
Comparison: 54c8c06
Total vector CPUs: 7

Explanation

A regression test is an integrated performance test for vector in a repeatable rig, with varying configuration for vector. What follows is a statistical summary of a brief vector run for each configuration across SHAs given above. The goal of these tests are to determine quickly if vector performance is changed and to what degree by a pull request.

The table below, if present, lists those experiments that have experienced a statistically significant change in mean optimization goal performance between baseline and comparison SHAs with 90.00% confidence OR have been detected as newly erratic. Negative values mean that baseline is faster, positive comparison. Results that do not exhibit more than a ±5.00% change in their mean optimization goal are discarded. An experiment is erratic if its coefficient of variation is greater than 0.1. The abbreviated table will be omitted if no interesting change is observed.

Changes in experiment optimization goals with confidence ≥ 90.00% and |Δ mean %| ≥ 5.00%:

experiment goal Δ mean Δ mean % confidence
syslog_log2metric_humio_metrics ingress throughput -363.55KiB/CPU-s -5.78 100.00%
http_text_to_http_json ingress throughput -1.55MiB/CPU-s -6.03 100.00%
Fine details of change detection per experiment.
experiment goal Δ mean Δ mean % confidence baseline mean baseline stdev baseline stderr baseline outlier % baseline CoV comparison mean comparison stdev comparison stderr comparison outlier % comparison CoV erratic declared erratic
file_to_blackhole egress throughput 1.18MiB/CPU-s 19.25 100.00% 6.13MiB/CPU-s 4.59MiB/CPU-s 125.08KiB/CPU-s 0.0 0.747971 7.31MiB/CPU-s 3.9MiB/CPU-s 133.57KiB/CPU-s 0.0 0.533034 True True
datadog_agent_remap_blackhole_acks ingress throughput 767.56KiB/CPU-s 2.41 100.00% 31.14MiB/CPU-s 1.44MiB/CPU-s 18.12KiB/CPU-s 0.0 0.046176 31.89MiB/CPU-s 737.73KiB/CPU-s 9.08KiB/CPU-s 0.0 0.02259 False False
otlp_http_to_blackhole ingress throughput 25.7KiB/CPU-s 1.65 100.00% 1.52MiB/CPU-s 128.06KiB/CPU-s 1.58KiB/CPU-s 0.0 0.082358 1.54MiB/CPU-s 108.06KiB/CPU-s 1.33KiB/CPU-s 0.0 0.068361 False False
datadog_agent_remap_blackhole ingress throughput 107.35KiB/CPU-s 0.33 100.00% 31.67MiB/CPU-s 1021.49KiB/CPU-s 12.57KiB/CPU-s 0.0 0.0315 31.77MiB/CPU-s 932.23KiB/CPU-s 11.47KiB/CPU-s 0.0 0.028653 False False
syslog_log2metric_splunk_hec_metrics ingress throughput 30.75KiB/CPU-s 0.32 100.00% 9.34MiB/CPU-s 219.29KiB/CPU-s 2.7KiB/CPU-s 0.0 0.022921 9.37MiB/CPU-s 192.92KiB/CPU-s 2.37KiB/CPU-s 0.0 0.020099 False False
http_to_http_acks ingress throughput 3.05KiB/CPU-s 0.06 4.90% 5.24MiB/CPU-s 2.77MiB/CPU-s 34.88KiB/CPU-s 0.0 0.528068 5.25MiB/CPU-s 2.8MiB/CPU-s 35.31KiB/CPU-s 0.0 0.534183 True False
enterprise_http_to_http ingress throughput 4.02KiB/CPU-s 0.03 70.14% 13.62MiB/CPU-s 249.54KiB/CPU-s 3.07KiB/CPU-s 0.0 0.017893 13.62MiB/CPU-s 191.34KiB/CPU-s 2.36KiB/CPU-s 0.0 0.013716 False False
splunk_hec_indexer_ack_blackhole ingress throughput 664.66B/CPU-s 0.00 11.26% 13.61MiB/CPU-s 267.98KiB/CPU-s 3.3KiB/CPU-s 0.0 0.019221 13.61MiB/CPU-s 259.18KiB/CPU-s 3.19KiB/CPU-s 0.0 0.018589 False False
fluent_elasticsearch ingress throughput 286.71B/CPU-s 0.00 40.90% 45.41MiB/CPU-s 30.32KiB/CPU-s 377.85B/CPU-s 0.0 0.000652 45.41MiB/CPU-s 30.22KiB/CPU-s 376.66B/CPU-s 0.0 0.00065 False False
splunk_hec_to_splunk_hec_logs_acks ingress throughput -174.24B/CPU-s -0.00 2.25% 13.61MiB/CPU-s 345.93KiB/CPU-s 4.25KiB/CPU-s 0.0 0.024812 13.61MiB/CPU-s 348.22KiB/CPU-s 4.28KiB/CPU-s 0.0 0.024977 False False
http_to_http_noack ingress throughput -2.02KiB/CPU-s -0.01 27.52% 13.61MiB/CPU-s 317.95KiB/CPU-s 3.91KiB/CPU-s 0.0 0.022807 13.61MiB/CPU-s 342.19KiB/CPU-s 4.21KiB/CPU-s 0.0 0.02455 False False
otlp_grpc_to_blackhole ingress throughput -57.03B/CPU-s -0.01 5.28% 1.02MiB/CPU-s 51.91KiB/CPU-s 653.95B/CPU-s 0.0 0.049693 1.02MiB/CPU-s 44.52KiB/CPU-s 561.06B/CPU-s 0.0 0.042624 False False
http_to_http_json ingress throughput -920.2B/CPU-s -0.01 18.04% 13.62MiB/CPU-s 224.21KiB/CPU-s 2.76KiB/CPU-s 0.0 0.016073 13.62MiB/CPU-s 228.63KiB/CPU-s 2.81KiB/CPU-s 0.0 0.016391 False False
splunk_hec_to_splunk_hec_logs_noack ingress throughput -4.3KiB/CPU-s -0.03 65.53% 13.62MiB/CPU-s 246.72KiB/CPU-s 3.04KiB/CPU-s 0.0 0.017692 13.61MiB/CPU-s 275.87KiB/CPU-s 3.39KiB/CPU-s 0.0 0.019788 False False
syslog_splunk_hec_logs ingress throughput -35.09KiB/CPU-s -0.38 100.00% 8.92MiB/CPU-s 207.48KiB/CPU-s 2.55KiB/CPU-s 0.0 0.022713 8.89MiB/CPU-s 192.62KiB/CPU-s 2.37KiB/CPU-s 0.0 0.021168 False False
syslog_humio_logs ingress throughput -35.27KiB/CPU-s -0.39 100.00% 8.93MiB/CPU-s 265.71KiB/CPU-s 3.27KiB/CPU-s 0.0 0.029058 8.89MiB/CPU-s 243.52KiB/CPU-s 3.0KiB/CPU-s 0.0 0.026734 False False
syslog_regex_logs2metric_ddmetrics ingress throughput -15.14KiB/CPU-s -0.40 95.84% 3.73MiB/CPU-s 423.15KiB/CPU-s 5.21KiB/CPU-s 0.0 0.110907 3.71MiB/CPU-s 431.19KiB/CPU-s 5.31KiB/CPU-s 0.0 0.113463 True True
syslog_loki ingress throughput -37.21KiB/CPU-s -0.43 100.00% 8.44MiB/CPU-s 248.95KiB/CPU-s 3.06KiB/CPU-s 0.0 0.028797 8.41MiB/CPU-s 239.85KiB/CPU-s 2.95KiB/CPU-s 0.0 0.027864 False False
datadog_agent_remap_datadog_logs_acks ingress throughput -209.26KiB/CPU-s -0.62 100.00% 32.9MiB/CPU-s 1.01MiB/CPU-s 12.77KiB/CPU-s 0.0 0.030822 32.7MiB/CPU-s 1.03MiB/CPU-s 12.96KiB/CPU-s 0.0 0.03146 False False
socket_to_socket_blackhole ingress throughput -90.3KiB/CPU-s -0.66 100.00% 13.39MiB/CPU-s 233.56KiB/CPU-s 2.87KiB/CPU-s 0.0 0.017035 13.3MiB/CPU-s 225.41KiB/CPU-s 2.77KiB/CPU-s 0.0 0.01655 False False
datadog_agent_remap_datadog_logs ingress throughput -427.27KiB/CPU-s -1.26 100.00% 33.01MiB/CPU-s 1.06MiB/CPU-s 13.34KiB/CPU-s 0.0 0.032074 32.6MiB/CPU-s 1.09MiB/CPU-s 13.71KiB/CPU-s 0.0 0.033381 False False
splunk_hec_route_s3 ingress throughput -197.04KiB/CPU-s -1.63 100.00% 11.81MiB/CPU-s 559.83KiB/CPU-s 6.89KiB/CPU-s 0.0 0.046286 11.62MiB/CPU-s 553.1KiB/CPU-s 6.81KiB/CPU-s 0.0 0.046487 False False
syslog_log2metric_humio_metrics ingress throughput -363.55KiB/CPU-s -5.78 100.00% 6.14MiB/CPU-s 207.56KiB/CPU-s 2.55KiB/CPU-s 0.0 0.033004 5.79MiB/CPU-s 234.8KiB/CPU-s 2.89KiB/CPU-s 0.0 0.039625 False False
http_text_to_http_json ingress throughput -1.55MiB/CPU-s -6.03 100.00% 25.63MiB/CPU-s 653.87KiB/CPU-s 8.05KiB/CPU-s 0.0 0.024915 24.08MiB/CPU-s 544.61KiB/CPU-s 6.7KiB/CPU-s 0.0 0.022084 False False

Copy link
Contributor

@spencergilbert spencergilbert left a comment

Choose a reason for hiding this comment

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

Bruce is double checking the noop() but otherwise LGTM

@bruceg bruceg merged commit 06f15e7 into vectordotdev:master Mar 30, 2023
@bruceg
Copy link
Member

bruceg commented Mar 30, 2023

Thanks for your work on this @jches!

@jches jches deleted the finalizer-stream-optional-shutdown branch March 30, 2023 20:02
@jches
Copy link
Contributor Author

jches commented Mar 30, 2023

Cheers, thanks for the review & feedback. I should have another coming soon to fix this for the kafka source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: sources Anything related to the Vector's sources source: file Anything `file` source related type: bug A code related bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants