Closed rukai closed 1 week ago
Comparing rukai:fix_coordinator_fetching_for_offset_fetch
(1f1314a) with main
(149dc70)
⚡ 1
improvements
✅ 38
untouched benchmarks
Benchmark | main |
rukai:fix_coordinator_fetching_for_offset_fetch |
Change | |
---|---|---|---|---|
⚡ | encode_system.local_result_v5_no_compression |
105.6 µs | 93 µs | +13.54% |
As per the documentation: https://docs.rs/kafka-protocol/latest/kafka_protocol/messages/offset_fetch_request/struct.OffsetFetchRequest.html The
group_id
field onOffsetFetchRequest
is only valid for API versions 0-7. However in the logic for determining group ids that require a metadata query (specificallyFindCoordinator
), we currently use this field regardless of the requests API version. As a result if a client sends a request of version 8 or 9 shotover may not have the required metadata to route this request. This is causing a particular problem in https://github.com/shotover/shotover-proxy/pull/1734 where outdated metadata is not updated, causing shotover to continue routing to the down node.This PR fixes our handling for API version 8-9 by adding specific handling for version 8-9. The additional logic iterates over the new
groups
field instead ofgroup_id
.