Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c/producer_state: keep producer inflight requests queue bounded
Idempotent producers are allowed to produce up to 5 at a time, the five requests outcome is cached in the producer for deduplication. Previously the `_inflight_requests` list might grow unbounded if state machine apply was lagging. This causes performance issues and unnecessary memory pressure. Since the max inflight requests count is limited by producer it is enough to keep only last 5 inflight requests in the `_inflight_requests` list. Signed-off-by: Michał Maślanka <michal@redpanda.com>
- Loading branch information