Skip to content

Commit 73bc4b4

Browse files
authored
Fix error test when ignoring RD_KAFKA_RESP_ERR_NO_ERROR in storeMessageOffset (#141)
1 parent 5dbf2fa commit 73bc4b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Kafka/RDKafka/RDKafkaClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ final class RDKafkaClient: Sendable {
525525
// which can occur during rebalancing or when the consumer is shutting down.
526526
// See "Upgrade considerations" for more details: https://github.com/confluentinc/librdkafka/releases/tag/v1.9.0
527527
// Since Kafka Consumers are designed for at-least-once processing, failing to commit here is acceptable.
528-
if error != RD_KAFKA_RESP_ERR__STATE {
528+
if error == RD_KAFKA_RESP_ERR__STATE {
529529
return
530530
}
531531
throw KafkaError.rdKafkaError(wrapping: error)

0 commit comments

Comments
 (0)