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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to