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 2022/06/10 12:39:40 UTC
[GitHub] [pulsar] Jaudouard opened a new issue, #16006: [python client] cannot close consumer after an unsubscribe
Jaudouard opened a new issue, #16006:
URL: https://github.com/apache/pulsar/issues/16006
**Describe the bug**
Currently, calling close() after unsubscribe() with the latest python client crashed and the connection with pulsar is not fully released if close() is not called, causing a leak in file descriptor.
**To Reproduce**
Steps to reproduce the behavior:
```python
from pulsar import client
client = Client(service_url='pulsar://localhost:6650')
consumer = client.subscribe("test_topic", subscription_name = "Consumer 1")
consumer.unsubscribe()
consumer.close()
```
The `consumer.close()` crashes and raises an `AlreadyClosed: Pulsar error` exception.
Several file descriptor are left open because the connection wasn't fully closed.
**Expected behavior**
we can close the consumer after unsubcribing, releasing the file descriptors. This is the current normal behaviour in the Java client.
**Desktop (please complete the following information):**
- OS: Ubuntu 20.04
- python 3.8
- pulsar-client 2.10.0
**Additional context**
This issue follows a discussion with @BewareMyPower in https://github.com/apache/pulsar/issues/14714
Thanks!
--
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: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] github-actions[bot] commented on issue #16006: [python client] cannot close consumer after an unsubscribe
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #16006:
URL: https://github.com/apache/pulsar/issues/16006#issuecomment-1181237504
The issue had no activity for 30 days, mark with Stale label.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] github-actions[bot] commented on issue #16006: [python client] cannot close consumer after an unsubscribe
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #16006:
URL: https://github.com/apache/pulsar/issues/16006#issuecomment-1264529738
The issue had no activity for 30 days, mark with Stale label.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org