pulsar-client-go icon indicating copy to clipboard operation
pulsar-client-go copied to clipboard

Ack/Nack use closed consumer

Open billowqiu opened this issue 2 years ago • 1 comments

Expected behavior

1:use Client to Subscribe a topic create an consumer-1 2:Receive message use consumer-1 3:then in some case consumer-1 is Closed. 4:use the same Client to create another consumer-2 to Ack/Nack the message

expect consumer-2 to Ack/Nack the message

Actual behavior

the Ack/Nack will use consumer-1 which is Closed before.

image image

Tell us what happens instead

Steps to reproduce

1:use Client to Subscribe a topic create an consumer-1 2:Receive message use consumer-1 3:then in some case consumer-1 is Closed. 4:use the same Client to create another consumer-2 to Ack/Nack the message

System configuration

Pulsar version: x.y

billowqiu avatar Sep 21 '22 09:09 billowqiu

I will give an pr to fix this issue.

billowqiu avatar Sep 21 '22 09:09 billowqiu

@billowqiu Do you want to contribute the fix back to apache/pulsar-client-go?

codelipenghui avatar Dec 08 '22 01:12 codelipenghui

@billowqiu Do you want to contribute the fix back to apache/pulsar-client-go?

I have submitted a pr in this link: https://github.com/apache/pulsar-client-go/pull/852

billowqiu avatar Dec 08 '22 02:12 billowqiu