Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling DeleteRecordsAsync on AdminClient with empty list of TopicPartitionOffsets will hang forever. #2197

Open
5 tasks done
DanielGlos opened this issue Mar 20, 2024 · 0 comments

Comments

@DanielGlos
Copy link

DanielGlos commented Mar 20, 2024

Description

As stated in title calling DeleteRecordsAsync with empty list will hang forever. Expected behavior would be to either throw an exception or just return from the method.

How to reproduce

using Confluent.Kafka;

using var adminClient = new AdminClientBuilder(new AdminClientConfig { BootstrapServers = "localhost:9092" }).Build();
Console.WriteLine("Calling delete records");
await adminClient.DeleteRecordsAsync(new List());
Console.WriteLine("Deleted records"); // THIS LINE WILL NEVER BE REACHED
Console.ReadLine();

Checklist

Please provide the following information:

  • A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
  • Confluent.Kafka nuget version. : 2.3.0
  • Apache Kafka version. : 3.2-IV0
  • Operating system. : Windows 11
  • Critical issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant