Skip to content

Commit

Permalink
fix(patch): [sc-4740] add additional failure as success #13
Browse files Browse the repository at this point in the history
  • Loading branch information
blindspotbounty authored Nov 7, 2023
1 parent 38b6121 commit de7534a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Kafka/RDKafka/RDKafkaClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,10 @@ final class RDKafkaClient: Sendable {
}
defer { rd_kafka_error_destroy(error) }

if rd_kafka_error_code(error) == RD_KAFKA_RESP_ERR__STATE { // No active transaction
return
}

/* check if transaction abort is retriable */
if rd_kafka_error_is_retriable(error) == 1 {
continue
Expand Down

0 comments on commit de7534a

Please sign in to comment.