Savonitar opened a new pull request, #228:
URL: https://github.com/apache/flink-connector-kafka/pull/228

   This PR fixes flaky tests that were failing with 
`org.apache.kafka.common.errors.OutOfOrderSequenceException` on the broker side.
   
   In a KRaft single-node environment `createTopics().all().get()` returns as 
soon as the Controller commits the topic to the metadata log. However, the 
Broker may not have finished initializing the log on disk yet
   
   Replaced the readiness check with `listOffsets(OffsetSpec.earliest())`, 
which requires the leader to access the actual log segments on disk. This 
places a barrier before the test producer starts, eliminating the race 
condition.


-- 
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]

Reply via email to