contrib/kafka: Bumping the Kafka protocol to 4.x drops client protocol support below 2.1
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- cpp, kafka
- Lĩnh vực
- networking
Hướng nghiên cứu
Start from the kafka bazel_dep pin and the codec generator that feeds the kafka_broker/kafka_mesh contrib filters, then read the per-version round-trip tests that assert which request versions can be parsed. Diff the 3.9.2 spec ranges against the 4.4.0 ones from #49545 to list exactly which versions (Produce v0-2, Fetch v0-3, ListOffsets v0, the controller APIs) disappear. Done means a recorded decision — accept the 2.1 baseline or make the generator emit the union of both ranges — with the test matrix updated to match.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Envoy's kafka_broker / kafka_mesh contrib filters generate their request/response codec from a pinned Apache Kafka protocol module (kafka bazel_dep, currently 3.9.2.envoy). To support clients shipped with Confluent Platform 8.x / cp-kafka 8.x (Apache Kafka 4.x), the module needs to be bumped to a 4.x release (see #49545, which bumps it to 4.4.0 and fixes the generator to consume the 4.x message specs).
Kafka 4.0 (KIP-896) removed the client protocol API versions older than the 2.1 baseline. As a direct consequence, generating the codec from 4.x specs drops the ability to parse those old versions that the 3.9.2 codec can parse today:
- Produce v0–2, Fetch v0–3, ListOffsets v0 (the pre-2.1 request versions)
- The ZooKeeper-era controller APIs (LeaderAndIsr / StopReplica / UpdateMetadata / ControlledShutdown) — inter-broker only, not client traffic
The tradeoff / decision needed
This is a behavioural change for the filters and should be decided independently of the mechanics in #49545:
- A client pinned to one of the removed protocol versions, which works through the filter today, would stop working after the bump.
- This matches real Kafka 4.0 — a pre-2.1 client cannot talk to a 4.0 broker at all — so for deployments fronting a 4.x broker there is no additional loss.
- The only genuine regression is: the filter in front of a 3.x broker (which still accepts pre-2.1 clients) with a pre-2.1 client. Today the filter proxies it; after the bump it cannot parse those frames.
Options
- Accept the Kafka 2.1 baseline — generate from 4.x specs as-is, matching upstream Kafka. Simplest; loses the narrow 3.x-broker + pre-2.1-client case.
- Preserve pre-2.1 support — generate the codec from the union of the old and new version ranges (keep the dropped low-version parsers while adding the 4.x high ones). Keeps the old case alive at the cost of generator work and carrying removed protocol versions.
Backward compatibility within the 2.1+ range is unaffected either way: the per-version codec round-trip tests cover every version still in the spec, so 3.x clients (which negotiate versions well above 2.1) continue to work.
(bot assisted)
- Ngôn ngữ chính
- C++
- Star
- 29.3k
- Fork
- 5.7k
- Merge trung bình
- 2 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 408
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của envoyproxy/envoy
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
envoyproxy/envoy#49711 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/build dependencies no stalebot
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
envoyproxy/envoy#49446 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/build dependencies no stalebot
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
envoyproxy/envoy#49445 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/build dependencies no stalebot
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
envoyproxy/envoy#49443 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/build dependencies no stalebot
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
envoyproxy/envoy#49441 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của envoyproxy/envoy
Issue tương tự
-
Type: Upstream-problem
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug introduced: 4.2.0 or earlier P2 ready-for-agent S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
open-astro/AlpacaBridge#3057 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
least_squares returns a nonfinite objective for an invalid initial residualCó thể đã có người làm @sylvesterkaczmarek đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
google-deepmind/mujoco#4023 ·
Maintainer thường phản hồi trong vòng 11 ngày
-
管理器:卡片副标题去掉 mas_N,挪到悬停提示Đang mởarea:manager enhancement P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ModAVD/ModAVD#377 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày