We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6328cd8 commit e2e0d96Copy full SHA for e2e0d96
examples/integration_test.py
@@ -420,8 +420,15 @@ def verify_consumer():
420
# Create consumer
421
c = confluent_kafka.Consumer(**conf)
422
423
+ def print_wmark(consumer, parts):
424
+ # Verify #294: get_watermark_offsets() should not fail on the first call
425
+ # This is really a librdkafka issue.
426
+ for p in parts:
427
+ wmarks = consumer.get_watermark_offsets(parts[0])
428
+ print('Watermarks for %s: %s' % (p, wmarks))
429
+
430
# Subscribe to a list of topics
- c.subscribe([topic])
431
+ c.subscribe([topic], on_assign=print_wmark)
432
433
max_msgcnt = 100
434
msgcnt = 0
0 commit comments