adixitconfluent opened a new pull request, #19824: URL: https://github.com/apache/kafka/pull/19824
### About This PR attempts to removed the flakiness in `testAlterReadCommittedToReadUncommittedIsolationLevelWithReleaseAck` and `testAlterReadCommittedToReadUncommittedIsolationLevelWithRejectAck` ([link](https://develocity.apache.org/scans/tests?search.names=CI%20workflow%2CGit%20repository&search.relativeStartTime=P28D&search.rootProjectNames=kafka&search.tags=github%2Ctrunk&search.tasks=test&search.timeZoneId=Asia%2FCalcutta&search.values=CI%2Chttps:%2F%2Fgithub.com%2Fapache%2Fkafka&tests.container=org.apache.kafka.clients.consumer.ShareConsumerTest&tests.test=testAlterReadCommittedToReadUncommittedIsolationLevelWithReleaseAck()%5B2%5D)). This flakiness could potentially be caused because we were not ensuring that the aborted transaction record produce happened. In this PR, I have added a blocking call to make sure the produce future completes before we abort the transaction. ### Testing The fix was tested locally by running the tests -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org