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/05/27 03:22:35 UTC

[GitHub] [pulsar] orbang opened a new issue #7048: Shared consumers do not receive messages in C++ and acknowledged messages get redelivered

orbang opened a new issue #7048:
URL: https://github.com/apache/pulsar/issues/7048


   When using shared subscriptions with the C++ client we see the following issues:
   
   * The consumers stop consuming silently after a period of time, without any obvious reasons (e.g. connection failure) or any unusual log messages. The issue seems to happen randomly. Recreating the consumers with the same parameters seems to fix this issue for a while. We are experiencing this issue both using the synchronous and the async APIs. The topic is non-partitioned persistent topic. The server is a standalone server. We only see this problem with shared consumers, it doesn't seem to happen if we change to exclusive.
   
   * Acknowledged messages get redelivered to shared consumers in C++ after subscription. It seems to happen both with synchronous and async acknowledgment. The API docs on acknowledge() states that acknowleded messages should not be redelivered. 
   
   **To Reproduce**
   Create shared consumers in C++ for a topic and call receive. The problem seems to happen randomly but relatively frequently. It does not occur with exclusive consumers.
   
   **Expected behavior**
   * At least one of the shared consumers should receive each message.
   * Acknowledged messages should not be redelivered.
   
   **Desktop (please complete the following information):**
    - RedHat 7.x
   
   


----------------------------------------------------------------
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] sijie commented on issue #7048: Shared consumers do not receive messages in C++ and acknowledged messages get redelivered

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






----------------------------------------------------------------
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] ruthareshmpn commented on issue #7048: Shared consumers do not receive messages in C++ and acknowledged messages get redelivered

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


   The exact same issue is happening to me at some random time the no messages were delivered to my program and suddenly receiving a message after an hour or some times 6 hours.
   
   After the consume got frozen, I debugged it with GDB and fount out the program is blocked in the mutex lock as shown the screenshot
   ![debug_lock](https://user-images.githubusercontent.com/17001280/85399505-8fb41900-b574-11ea-9b78-0c6d0f76ea0c.png)
   ![Screenshot from 2020-06-23 17-12-17](https://user-images.githubusercontent.com/17001280/85399625-bd00c700-b574-11ea-82dc-2baa2abdf5dd.png)
   
   After my debugging, I found out the following that for the shared subscription there was messages backlog because of consuming stopped.
   ![Screenshot from 2020-06-23 17-01-02](https://user-images.githubusercontent.com/17001280/85398855-7199e900-b573-11ea-88c2-7751084029c6.png)
   
   


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