Tlaloc-Es opened a new issue, #15052:
URL: https://github.com/apache/pulsar/issues/15052

   **Describe the bug**
   After call `consumer.negative_acknowledge(msg)` a lot suddenly the consumer 
doesn't consumer any message, I change the cursor name several times but didn't 
work.
   
   The new consumers were created with 
   
   ```
   consumer = pulsar.Client(
               PULSAR_URL,
               authentication=AuthenticationOauth2(params)
           ).subscribe(
               topic=PULSAR_TOPIC,
               initial_position=_pulsar.InitialPosition.Earliest,
               subscription_name=PULSAR_SUBSCRIPTION_NAME
           )
   ```
   or with
   ```
   consumer = pulsar.Client(
               PULSAR_URL,
               authentication=AuthenticationOauth2(params)
           ).subscribe(
               topic=PULSAR_TOPIC,
               initial_position=pulsar.InitialPosition.Earliest,
               subscription_name=PULSAR_SUBSCRIPTION_NAME
           )
   ```
   
   **To Reproduce**
    ```
   while True:
           msg = consumer.receive()
           ex = msg.value()
           data = json.loads(ex)
           try:
               print(data)
               consumer.negative_acknowledge(msg)
           except Exception as e:
               consumer.negative_acknowledge(msg)
   ```
   **Expected behavior**
   Consume messages, and consume all messages from the earliest position.
   
   **Screenshots**
   If applicable, add screenshots to help explain your problem.
   
   **Desktop (please complete the following information):**
    - OS: [e.g. iOS]
   
   **Additional context**
   Add any other context about the problem 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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to