Repository navigation
Fix swapped topic and group tags on Kafka Streams Data Streams metrics - #13671
Conversation
createWithGroup takes (type, direction, topic, group) but both Kafka Streams advices passed the application id as the topic and the record topic as the group, so data_streams.* metrics from Kafka Streams consumers had the two tags swapped since v1.52.0. The existing DSM assertions for Kafka Streams sit in an @ignore'd test (kafka-streams 0.11) and a class-level @flaky test (latest deps), so neither runs in blocking CI. Add a focused consume-checkpoint test to both suites and narrow @flaky to the feature it was meant for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🟡 Java Benchmark SLOs — Performance SLO warning (near threshold)
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
There was a problem hiding this comment.
More details
Both Kafka Streams advice paths now match the tag factory’s topic/group argument order, and the added regression assertions check those values separately. The static reviewer returned no actionable findings.
🤖 Bits Code Review · Commit 94a9b8c
Kafka / producer-benchmarkParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics. See unchanged results
|
Kafka / consumer-benchmarkParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics. See unchanged results
|
|
/merge |
|
View all feedbacks in Devflow UI.
It will be processed automatically as soon as GitHub reports it as mergeable. View in MergeQueue UI.
The expected merge time in
|
9e7a3da
into
master
What Does This Do
Puts the record's topic in
topicand the application id ingroupon Kafka Streams DSM consume checkpoints. Both advices (kafka-streams before 2.7 and 2.7+) passed them toDataStreamsTags.createWithGroup(type, direction, topic, group)in the wrong order.The production change is that argument swap on one line, applied at both call sites (KafkaStreamTaskInstrumentation.java:301 and :368). The rest of the diff is tests.
Motivation
Since v1.52.0 (#9151), Kafka Streams apps report
data_streams.*metrics withtopic:<application.id>andgroup:<topic>. Dashboards and monitors filtering on topic miss these series and the DSM map shows the wrong nodes. Latency values are correct. Pathway hashes for Kafka Streams consumers change again with this fix.Additional Notes
The existing DSM assertions for Kafka Streams never ran in blocking CI: the 0.11 test is
@Ignored and the latest-deps class was@Flakyas a whole (#3865). This adds a focused consume-checkpoint test to both suites and narrows@Flakyto the old feature, so the new test runs. With the fix reverted, all six new test runs fail withtopic:test-application,group:test.pending; with it, they pass.Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issueLinear ticket: DSM2-897
🤖 Generated with Claude Code