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 2020/10/20 09:06:09 UTC

[GitHub] [pulsar] kent-crypto opened a new issue #8308: Close the consumer graceful

kent-crypto opened a new issue #8308:
URL: https://github.com/apache/pulsar/issues/8308


   **Is your enhancement request related to a problem? Please describe.**
   Yes. I want to stop some of the components of the system without turnoff the inflow.
   
   **Describe the solution you'd like**
    I would like to achieve the goal on closing consumer: the message listener stop receiving any new message, and waits till the ongoing message to be completed. 
   
   The ConsumerImpl.close method set the status to "State.Closing", which stops the on going message to be acked. Because of this, the message will be re-consumed when restart the consumer.
   
   **Describe alternatives you've considered**
   A clear and concise description of any alternative solutions or features you've considered.
   
   **Additional context**
   Add any other context or screenshots about the feature request here.
   


----------------------------------------------------------------
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



[GitHub] [pulsar] MarvinCai edited a comment on issue #8308: Close the consumer graceful

Posted by GitBox <gi...@apache.org>.
MarvinCai edited a comment on issue #8308:
URL: https://github.com/apache/pulsar/issues/8308#issuecomment-721562725


   @kent-crypto Is it possible that we just use consumer.[pause](https://pulsar.apache.org/api/client/)() to stop receiving message from broker and process/ack outstanding messages before closing the consumer. Seem this can also achieve what you describe.


----------------------------------------------------------------
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



[GitHub] [pulsar] MarvinCai commented on issue #8308: Close the consumer graceful

Posted by GitBox <gi...@apache.org>.
MarvinCai commented on issue #8308:
URL: https://github.com/apache/pulsar/issues/8308#issuecomment-721562725


   @kent-crypto Is it possible that we just use consumer.[pause](https://pulsar.apache.org/api/client/)() to stop receiving message from broker and process/ack outstanding messages before closing the consumer. Sounds to me that can also achieve what you describe.


----------------------------------------------------------------
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



[GitHub] [pulsar] zongtanghu commented on issue #8308: Close the consumer graceful

Posted by GitBox <gi...@apache.org>.
zongtanghu commented on issue #8308:
URL: https://github.com/apache/pulsar/issues/8308#issuecomment-737696101


   This issue can you help to resolve it? @zhanghaou @shaojie


----------------------------------------------------------------
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