swjz opened a new issue #14372:
URL: https://github.com/apache/pulsar/issues/14372
**Describe the bug**
On `pulsar-client==2.9.1` (python), `acknowledge_cumulative()` does not work
with a consumer subscribed to multiple topics.
**To Reproduce**
Set up a pulsar server on `localhost:6650`. Create two topics `topic1` and
`topic2`. Make sure each topic has at least one message in it so we can consume
them later.
Run the following code to consume a message.
```python
import pulsar
from _pulsar import InitialPosition
client = pulsar.Client(service_url='pulsar://localhost:6650')
consumer = client.subscribe(['topic1', 'topic2'], subscription_name='test',
initial_position=InitialPosition.Earliest)
msg = consumer.receive()
consumer.acknowledge_cumulative(msg)
```
The last line `acknowledge_cumulative()` throws `RuntimeError:
bad_function_call`.
**Expected behavior**
No error should be raised.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: Ubuntu 20.04.3 LTS
- Python 3.8.10
- `pulsar-client==2.9.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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]