Open Rita003 opened 1 month ago
This is a duplicate of https://github.com/dotnet/aspire/issues/5939
cc @mitchdenny
This issue doesn't repro after installing the latest released SDK 8.0.403 + Aspire 8.2.2. This issue also repro after installing the latest SDK 9.0GA + Aspire 9.0.0
Same as https://github.com/dotnet/aspire/issues/6516 but for hosting.
@g7ed6e any ideas?
This occurs only at consumer side and is not related to aspire.. I used to see these logs in a différent context and I think this is a bug in librdkafka when the consumer is connecting to the broker because the error logs quickly stop being emitted and the consumer start receiving messages. The librdkakfa logs are forwarded to Confluent.Kakfa which are forwarded to aspire. I will see if I can find an issue we can link to in librdkakfa and Confluent.Kafka.
@g7ed6e could it have anything with the health checks attempting to create a producer with kafka before it's fully started?
While it's a rdkafka
error, if it's the health check then can we have it reported as such?
INSTALL STEPS
Install SDK 9.0.100-rc.2.24474.11
Install Aspire 9.0.0-preview.4.24475.9
REPRO STEPS
builder.AddKafkaProducer<string, string>("messaging");
var myService = builder.AddProject()
.WithReference(messaging);
%6|1727406956.153|FAIL|rdkafka#producer-1| [thrd:localhost:59716/bootstrap]: localhost:59716/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 5001ms in state APIVERSION_QUERY) %3|1727406956.153|ERROR|rdkafka#producer-1| [thrd:localhost:59716/bootstrap]: 1/1 brokers are down %3|1727406956.153|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: localhost:59716/bootstrap: Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration (connecting to a SSL listener?) or broker version is < 0.10 (see api.version.request) (after 5001ms in state APIVERSION_QUERY)