Skip to content

Commit 1bcc4c4

Browse files
committed
kafkatest: dont send error for good offset commit
1 parent 97dc102 commit 1bcc4c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

confluent_kafka/kafkatest/verifiable_consumer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ def on_commit(self, err, partitions):
120120
d['error'] = ''
121121

122122
for p in partitions:
123-
pd = {'topic': p.topic, 'partition': p.partition,
124-
'offset': p.offset, 'error': str(p.error)}
123+
pd = {'topic': p.topic, 'partition': p.partition, 'offset': p.offset}
124+
if p.error is not None:
125+
pd['error'] = str(p.error)
125126
d['offsets'].append(pd)
126127

127128
self.send(d)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy