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/04/10 09:17:35 UTC

[GitHub] [pulsar] sbourkeostk opened a new issue #6709: unsubscribe option for pulsar-client cli

sbourkeostk opened a new issue #6709: unsubscribe option for pulsar-client cli
URL: https://github.com/apache/pulsar/issues/6709
 
 
   **Is your feature request related to a problem? Please describe.**
   After running `pulsar-client consume` the subscription is kept active and it is not possible to unsubscribe without using the admin interface.
   
   **Describe the solution you'd like**
   The option to unsubscribe after consuming. eg:
   pulsar-client consume -s testsub --unsubscribe persistent://my/pulsar/topic
   
   **Describe alternatives you've considered**
   Using pulsar-admin it's possible to unsubscribe but this requires the user has access to the admin interface.
   
   **Additional context**
   none
   

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

[GitHub] [pulsar] sbourkeostk commented on issue #6709: unsubscribe option for pulsar-client cli

Posted by GitBox <gi...@apache.org>.
sbourkeostk commented on issue #6709: unsubscribe option for pulsar-client cli
URL: https://github.com/apache/pulsar/issues/6709#issuecomment-613927526
 
 
   @sijie Yes, you can unsubscribe using the admin interface but that is not the same thing. Allowing the CLI client to unsubscribe itself has two main advantages:
   
   1. Users without access to the admin interface can unsubscribe
   2. Convenience - I suspect that a lot of users use `pulsar-client consume` to check that messages are flowing on a topic and they do not intend the subscription to persist. On our Pulsar test cluster we often see backlogs on subscriptions that were started with the CLI and the user neglected to unsubscribe.
   
   Going further, I think it would be good practice to the CLI unsubscribe be default with an option to persist the subscription.
   
   I know this would not be high priority but would you be opposed to a pull request for this feature if @315157973 or myself were willing to implement it?

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

[GitHub] [pulsar] sijie closed issue #6709: unsubscribe option for pulsar-client cli

Posted by GitBox <gi...@apache.org>.
sijie closed issue #6709: unsubscribe option for pulsar-client cli
URL: https://github.com/apache/pulsar/issues/6709
 
 
   

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

[GitHub] [pulsar] sijie commented on issue #6709: unsubscribe option for pulsar-client cli

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #6709: unsubscribe option for pulsar-client cli
URL: https://github.com/apache/pulsar/issues/6709#issuecomment-612475774
 
 
   @315157973 since you are not part of ASF org, I am not able to assign it to you in Github. In general, you can leave a message here when you start working on it.

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

[GitHub] [pulsar] 315157973 commented on issue #6709: unsubscribe option for pulsar-client cli

Posted by GitBox <gi...@apache.org>.
315157973 commented on issue #6709: unsubscribe option for pulsar-client cli
URL: https://github.com/apache/pulsar/issues/6709#issuecomment-612354397
 
 
    you can assigne it to me :) @sijie 

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

[GitHub] [pulsar] sijie commented on issue #6709: unsubscribe option for pulsar-client cli

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #6709: unsubscribe option for pulsar-client cli
URL: https://github.com/apache/pulsar/issues/6709#issuecomment-612476125
 
 
   @315157973 I don't think we need additional command to do that.
   
   @sbourkeostk  You can use `topics unsubscribe` to unsubscribe a subscription.
   
   ```
   bin/pulsar-admin topics unsubscribe
   The following option is required: -s, --subscription
   
   Delete a durable subscriber from a topic.
   		The subscription cannot be deleted if there are any active consumers attached to it
   
   Usage: unsubscribe [options] persistent://tenant/namespace/topic
     Options:
     * -s, --subscription
          Subscription to be deleted
   ```

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

[GitHub] [pulsar] sijie commented on issue #6709: unsubscribe option for pulsar-client cli

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #6709: unsubscribe option for pulsar-client cli
URL: https://github.com/apache/pulsar/issues/6709#issuecomment-612712264
 
 
   Closed this issue since we don't need to add `unsubscribe` command to pulsar-client.

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