gardenia opened a new pull request, #10517: URL: https://github.com/apache/ozone/pull/10517
Please describe your PR in detail: * Replaced the initial blocking Kafka send/checkpoint update implementation in `OMEventListenerKafkaPublisher` with an async send which updates the checkpointing position when the sends are acknowledged. * In-flight transaction acknowledgements are tracked in-memory using a sliding-window companion, and the checkpointing position is only advanced to the highest contiguous acknowledged transaction index (preserving "at-least-once" delivery guarantees). * Added a flow-control backpressure limit (default: 1,000) for the in-flight transaction tracking. If the limit is reached, the poller thread will block until the window drains. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-15564 ## How was this patch tested? Unit tests: * `TestOMEventListenerKafkaPublisher.testAsyncSlidingWindowWatermark` (validated out-of-order ack progress) * `TestOMEventListenerKafkaPublisher.testAsyncSendFailureHaltsWatermark` (validated broker failure-halting and idempotent poller retries) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
