Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kgo sink: do not back off on certain edge case
* Produce request created and about to be issued * Metadata request resolves and removes the broker that was about to be sent to, updates leadership for the partition * recBuf's `sink` field is updated * The old sink then enters handleReqResp, then eventually handleRetryBatches Previously, * Failed partition triggers a metadata refresh and enters a failed state until the metadata refresh clears the failing state. Because a metadata refresh JUST happened, internally this causes a 5s wait by default Now, * Failed partition notices that it is actually NOW on a different broker than the broker that is handling the failure, and does not back off at all, and actually triggers potentially draining on the new sink once decInflight runs Closes #746.
- Loading branch information