8000 fix(kafka sink): Use rdkafka::client::Client instead of Consumer by belltoy · Pull Request #21129 · vectordotdev/vector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(kafka sink): Use rdkafka::client::Client instead of Consumer #21129

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

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

belltoy
Copy link
Contributor
@belltoy belltoy commented Aug 22, 2024

Use rdkafka::client::Client instead of Consumer in Kafka sink healthcheck

Discussed in #20510

@belltoy belltoy requested a review from a team as a code owner August 22, 2024 01:31
@bits-bot
Copy link
bits-bot commented Aug 22, 2024

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the domain: sinks Anything related to the Vector's sinks label Aug 22, 2024
@belltoy belltoy force-pushed the fix/kafka-sink-healthcheck branch from 984830c to df464ab Compare August 22, 2024 12:15
Copy link
Member
@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

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

Thank you @belltoy !

I think the only thing this is missing is a changelog entry describing the fix for users. Do you mind adding one? You can see https://github.com/vectordotdev/vector/blob/master/changelog.d/README.md for what this looks like. In this case I'd say something like:

The `kafka` sink no longer emits warnings due to applying rdkafka options to a consumer used for the health check. Now it uses the producer client for the health check.

authors: belltoy

@jszwedko jszwedko enabled auto-merge August 22, 2024 14:56
@jszwedko
Copy link
Member

Thanks @belltoy !

auto-merge was automatically disabled August 22, 2024 15:16

Head branch was pushed to by a user without write access

@belltoy belltoy force-pushed the fix/kafka-sink-healthcheck branch from 36b1f5e to 8e6a0ca Compare August 22, 2024 15:16
@belltoy
Copy link
Contributor Author
belltoy commented Aug 22, 2024

I've force pushed to fix the code style

@jszwedko jszwedko enabled auto-merge August 22, 2024 15:18
@jszwedko jszwedko added this pull request to the merge queue Aug 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 22, 2024
@jszwedko jszwedko added this pull request to the merge queue Aug 22, 2024
Copy link

Regression Detector Results

Run ID: d9894925-a8b0-4ee2-ba8f-6dc1e1a0d7a1 Metrics dashboard

Baseline: 82fd2a5
Comparison: 66b55fe

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

Significant changes in experiment optimization goals

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

perf experiment goal Δ mean % Δ mean % CI links
otlp_http_to_blackhole ingress throughput +6.02 [+5.90, +6.14]

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI links
file_to_blackhole egress throughput +0.29 [-6.53, +7.10]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI links
otlp_http_to_blackhole ingress throughput +6.02 [+5.90, +6.14]
socket_to_socket_blackhole ingress throughput +3.87 [+3.81, +3.92]
syslog_humio_logs ingress throughput +3.24 [+3.11, +3.38]
splunk_hec_route_s3 ingress throughput +2.94 [+2.61, +3.27]
http_text_to_http_json ingress throughput +2.34 [+2.19, +2.50]
syslog_loki ingress throughput +2.28 [+2.19, +2.36]
fluent_elasticsearch ingress throughput +2.16 [+1.66, +2.66]
datadog_agent_remap_datadog_logs_acks ingress throughput +1.72 [+1.51, +1.92]
syslog_log2metric_tag_cardinality_limit_blackhole ingress throughput +1.63 [+1.47, +1.79]
datadog_agent_remap_blackhole_acks ingress throughput +1.39 [+1.27, +1.51]
syslog_regex_logs2metric_ddmetrics ingress throughput +1.39 [+1.22, +1.56]
syslog_log2metric_splunk_hec_metrics ingress throughput +0.99 [+0.87, +1.12]
http_to_http_acks ingress throughput +0.86 [-0.46, +2.18]
syslog_splunk_hec_logs ingress throughput +0.40 [+0.31, +0.49]
file_to_blackhole egress throughput +0.29 [-6.53, +7.10]
otlp_grpc_to_blackhole ingress throughput +0.15 [+0.04, +0.27]
http_to_http_noack ingress throughput +0.10 [+0.03, +0.17]
http_to_http_json ingress throughput +0.02 [-0.01, +0.06]
splunk_hec_to_splunk_hec_logs_noack ingress throughput +0.02 [-0.08, +0.13]
splunk_hec_indexer_ack_blackhole ingress throughput -0.01 [-0.09, +0.07]
splunk_hec_to_splunk_hec_logs_acks ingress throughput -0.02 [-0.16, +0.11]
http_to_s3 ingress throughput -0.03 [-0.30, +0.24]
datadog_agent_remap_blackhole ingress throughput -0.27 [-0.39, -0.16]
datadog_agent_remap_datadog_logs ingress throughput -0.31 [-0.51, -0.11]
http_elasticsearch ingress throughput -1.05 [-1.23, -0.88]
syslog_log2metric_humio_metrics ingress throughput -2.07 [-2.22, -1.91]

Explanation

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

Merged via the queue into vectordotdev:master with commit 66b55fe Aug 22, 2024
49 checks passed
AndrooTheChen pushed a commit to discord/vector that referenced this pull request Sep 23, 2024
…tordotdev#21129)

* fix(kafka sink): Use rdkafka::client::Client instead of Consumer for Kafka sink healthcheck

Discussed in vectordotdev#20510

* style(kafka sink): Use string interpolation in error string formatting

* docs: add changelog fragment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: sinks Anything related to the Vector's sinks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0