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
While trying to workaround the auto-created topic when using GetMetadata() with the admin client, I found help in this issue: #726
The solution was to set the default for the underlying producer to "false": "allow.auto.create.topics": "false"
This works (tnx for documenting it in #726) but I get the following warning which is obviously wrong: %4|1652854065.186|CONFWARN|rdkafka#producer-1| [thrd:app]: Configuration property allow.auto.create.topics is a consumer property and will be ignored by this producer instance
In fact the config did work and was not ignored. I could verify that since no topic was created when fetching with GetMetadata()
How to reproduce
// outputs %4|1652854065.186|CONFWARN|rdkafka#producer-1| [thrd:app]: Configuration property allow.auto.create.topics is a consumer property and will be ignored by this producer instancefuncmyfunc() {
a, err:=confkafka.NewAdminClient(&confkafka.ConfigMap{
"bootstrap.servers": config.BrokerAddress,
"allow.auto.create.topics": "false",
})
iferr!=nil {
log.Fatalf("Failed to create Admin client: %v", err)
}
defera.Close()
}
Checklist
Please provide the following information:
confluent-kafka-go and librdkafka version (LibraryVersion()): 1.8.2
Description
While trying to workaround the auto-created topic when using
GetMetadata()
with the admin client, I found help in this issue: #726The solution was to set the default for the underlying producer to "false":
"allow.auto.create.topics": "false"
This works (tnx for documenting it in #726) but I get the following warning which is obviously wrong:
%4|1652854065.186|CONFWARN|rdkafka#producer-1| [thrd:app]: Configuration property allow.auto.create.topics is a consumer property and will be ignored by this producer instance
In fact the config did work and was not ignored. I could verify that since no topic was created when fetching with
GetMetadata()
How to reproduce
Checklist
Please provide the following information:
LibraryVersion()
): 1.8.2The text was updated successfully, but these errors were encountered: