cookie-cutter
cookie-cutter copied to clipboard
Investigate INVALID_TXN_STATE Error
Error code: 48, type: INVALID_TXN_STATE is thrown when a transaction is aborted before the transaction has had send called on it. This results in the transaction falling in an invalid state and the KafkaSink needs to be disposed and re-initialized (this disconnects the kafkajs.Producer which created the transaction and creates a new one).
This issues is dependent on a change in KafkaJS. Once they have a fix we can modify the KafkaTransactional.integration.test.ts file to not call dispose() and initialize() a second time.
Issue tracking: https://github.com/tulios/kafkajs/issues/469
Kafkajs does not seem to be working on this issue. Last comment was on Nov 10, 2019