Use --replication-factor 3 when creating Kafka topic 'beam' in KafkaIO workflows #41667
All Vouch review confidence checks passed
Residual risk 0.39 = Change Risk (0.48) × (1 − Review Confidence (0.20)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 389 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 27% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.357
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #41667"
general
weight: 0.35
github-actions[bot]
Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:
Full details of the methodology of generation and review can be found here - https://docs.google.com/document/d/14lj7ECVov4T4EdwmIzNlWrRGE3lLDMOwX5xUMGzaLoc/edit?usp=sharing
If you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)
Summary
Update the
Create Kafka topicstep in.github/workflows/beam_PerformanceTests_xlang_KafkaIO_Python.ymland.github/workflows/beam_StressTests_Java_KafkaIO.ymlto create topicbeamwith--replication-factor 3instead of--replication-factor 1.Root Cause
Both workflows deploy the 3-broker Kafka cluster from
.test-infra/kubernetes/kafka-cluster/, where:05-kafka/10broker-config.ymlconfiguresdefault.replication.factor=3andmin.insync.replicas=2.05-kafka/configmap-config.yaml(run asynchronously by thekafka-configKubernetes Job) creates topicbeamwith--replication-factor 3.However, the workflow's
Create Kafka topicstep ran:Whenever this workflow step executed before the
kafka-configJob finished creatingbeam, it createdbeamwithreplication-factor=1, which is strictly less than the broker'smin.insync.replicas=2. Subsequent writes fromKafkaWriter(acks=all) then deterministically failed with:In passing runs (e.g., 45384783522), the
kafka-configJob won the race (Topic 'beam' already exists), leavingbeamwithreplication-factor=3.Recent Occurrences
2 occurrences on
masterin the last 7 days:2026-11-25) —PerformanceTests xlang KafkaIO Python(Created topic "beam".with RF=1 →NotEnoughReplicasException)2026-11-23) —PerformanceTests xlang KafkaIO Python(Created topic "beam".with RF=1 →NotEnoughReplicasException)Verification
yaml.safe_load.beam_PerformanceTests_xlang_KafkaIO_Python.ymlon this PR branch.Verification
beam_PerformanceTests_xlang_KafkaIO_Python.ymlworkflow run on branch:45628470402