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 2019/05/21 12:30:14 UTC

[GitHub] [pulsar] Jim-Lambert-Bose opened a new issue #4324: Go client: consumer.Unsubscribe() places topic in unusable state.

Jim-Lambert-Bose opened a new issue #4324: Go client: consumer.Unsubscribe() places topic in unusable state.
URL: https://github.com/apache/pulsar/issues/4324
 
 
   **Describe the bug**
   My unit tests use a static subscription name and topic name.  My test does a: create, publish, consume messages and then unsubscribe at the end.  This works the first time with no problem, but subsequent runs fail and the subscription is in an odd state.   I am able to clear the issue be running: `pulsar-client consume --subscription-name my-sub  --num-messages 0 my-topic` 
   Then the next iteration of my test succeeds... and we repeat the process all over again.
   
   If you don't Unsubscribe() then the test always succeeds.
   If you create a new subscription name every time, the test always succeed. 
   
   **To Reproduce**
   Steps to reproduce the behavior:
   
   I created a repo with my Go tests: https://github.com/Jim-Lambert-Bose/go-test-pulsar-consumer
   To recreate:
   1. clone repo
   2. run `go test -v` multiple times.
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   I believe that you should be able to subscribe/unsubscribe as many times as you wish from the same static subscription name.  As long as you create a new subscriber, it should just work.
   
   
   **Desktop (please complete the following information):**
    - OS: macOS Mojave v10.14.4
   
   
   

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