-
Notifications
You must be signed in to change notification settings - Fork 652
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
The ID in a message is always -1
when UseSchemaID
in the serde.Serializer
is set.
#848
Closed
6 of 7 tasks
Comments
We too are facing this issue. Can this be because of this - https://github.com/confluentinc/confluent-kafka-go/blob/master/schemaregistry/serde/serde.go#L153 |
perdue
added a commit
to perdue/confluent-kafka-go
that referenced
this issue
Oct 9, 2022
perdue
added a commit
to perdue/confluent-kafka-go
that referenced
this issue
Oct 9, 2022
perdue
added a commit
to perdue/confluent-kafka-go
that referenced
this issue
Oct 9, 2022
PrasanthV454
pushed a commit
that referenced
this issue
Jan 12, 2023
PrasanthV454
pushed a commit
that referenced
this issue
Mar 17, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
From here:
confluent-kafka-go/schemaregistry/serde/config.go
Lines 20 to 29 in 561a260
I expect that the behaviour of
UseSchemaID
is to tell a Serializer to use that ID regardless what's on a Schema Registry.When invoking
serde.Serialize()
(I'm using the specific avro one), the embeddedBaseSerializer.GetID
would be used to get the schema ID of a messageconfluent-kafka-go/schemaregistry/serde/avro/avro_specific.go
Line 79 in 561a260
However, the condition for
UseSchemaID
is like the snippet below. There is no line actually assigning anything from either the query results or theUseSchemaID
to theid
variable in the same method:confluent-kafka-go/schemaregistry/serde/serde.go
Lines 147 to 158 in 561a260
Therefore, the GetID method is always like this when
UseSchemaID
>= 0:How to reproduce
With the specific avro serializer example, the issue can be reproduced via setting
UseSchemaID
to whatever >= 0:Checklist
Please provide the following information:
LibraryVersion()
): v1.9.2 / v1.9.2ConfigMap{...}
: irrelevant"debug": ".."
as necessary): irrelevantThe text was updated successfully, but these errors were encountered: