You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/10/28 13:10:56 UTC
[GitHub] [pulsar] candlerb commented on issue #5365: python API missing
`is_read_compacted` in create_reader()
candlerb commented on issue #5365: python API missing `is_read_compacted` in create_reader()
URL: https://github.com/apache/pulsar/issues/5365#issuecomment-546938428
Yes I had already tried it, and it fails.
Code:
```
import pulsar
client = pulsar.Client('pulsar://localhost:6650')
msg_id = pulsar.MessageId.earliest
reader = client.create_reader('my-topic', msg_id, read_compacted=True)
while True:
msg = reader.read_next()
print("Received message %r id=%s" % (msg.data(), msg.message_id()))
```
Exception:
```
$ python3 read.py
Traceback (most recent call last):
File "read.py", line 7, in <module>
reader = client.create_reader('my-topic', msg_id, read_compacted=True)
TypeError: create_reader() got an unexpected keyword argument 'read_compacted'
```
This is with `pulsar-client (2.4.1)`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services