You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I terminate a topic from the REST API on a standalone Pulsar container (2.8.0), calling consumer.ReceiveAsynce() does not have the expected behavior. I expect (this line of code)[https://github.com/fsharplang-ru/pulsar-client-dotnet/blob/develop/src/Pulsar.Client/Internal/ConsumerImpl.fs#L1079] to be hit to end the wait on the receive. Instead, it blocks forever.
Am I doing something wrong or missing something?
Here is a simple repro. I am using package version 2.8.0.
privatestaticasync Task TestPulsarContainer(stringconnectionString){stringtopicName="testTopic";PulsarClientpulsarClient=awaitnew PulsarClientBuilder().ServiceUrl(connectionString).BuildAsync();IProducer<byte[]>producer=await pulsarClient.NewProducer().Topic(topicName).CreateAsync();IConsumer<byte[]>consumer=await pulsarClient.NewConsumer().Topic(topicName).SubscriptionName("testSubscription").SubscribeAsync();stringtestMessage="Test message";await producer.SendAsync(Encoding.UTF8.GetBytes(testMessage));// Terminate topic with rest apiMessage<byte[]>message=await consumer.ReceiveAsync();await consumer.AcknowledgeAsync(message.MessageId);// This call should not block because topic is terminated and no other messages are in the queue.await consumer.ReceiveAsync();// This should be true because topic is terminated and no other messages are in the queue.
Assert.IsTrue(consumer.HasReachedEndOfTopic);}
The text was updated successfully, but these errors were encountered:
When I terminate a topic from the REST API on a standalone Pulsar container (2.8.0), calling
consumer.ReceiveAsynce()
does not have the expected behavior. I expect (this line of code)[https://github.com/fsharplang-ru/pulsar-client-dotnet/blob/develop/src/Pulsar.Client/Internal/ConsumerImpl.fs#L1079] to be hit to end the wait on the receive. Instead, it blocks forever.Am I doing something wrong or missing something?
Here is a simple repro. I am using package version 2.8.0.
The text was updated successfully, but these errors were encountered: