You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mqtt-kafka: a group offsets request is skipped when the first window is smaller than the request instead of waiting for credit #3271
By reading MqttKafkaSessionFactory (KafkaApiRequestStream.doKafkaRequest; found while extending the Clean Start group offsets reset; not run): the request stream sends its request once, on the first window. If the request needs more credit than the window offers (reserved > available), it calls onKafkaFailure, which skips the request. A later, larger window does not help, because the request is never retried. For the group offsets reset this means an OffsetDelete request of 81 bytes plus padding is not sent when the kafka peer grants a 67 byte window first, and the delete is silently skipped.
Credit is a contract in every direction (runtime/AGENTS.md): a sender that has more to write than the window allows waits for the next window.
Expected
The request stream waits for credit and writes the request when the window allows, instead of failing on the first window that is too small. It fails only when the stream ends or is reset before enough credit arrives.
Mirror an established pattern: find how the other request and data streams in this binding and in the sibling bindings write a payload that does not fit the current window (partial write, then continue on the next window, or hold the whole frame until the window allows), and say which is mirrored. Do not add a reserve, a slack or a flag.
First step (verify before changing code)
Write a kafka-side script in specs/binding-mqtt-kafka.spec where the first window is smaller than the request and a later window grows: show the request is not sent on the unchanged code.
Test plan (test-first)
Script pairs for the request stream in specs/binding-mqtt-kafka.spec and a runtime IT method in the existing MqttKafkaSessionProxyIT; first commit the failing test, run with a hard timeout.
Notes
Part of the MQTT conformance work under #512. Follows #3202 and #3204.
Activity
fix(binding-mqtt-kafka): write a group offsets request as the kafka c…
fix(binding-mqtt-kafka): write a group offsets request as the kafka c…