-
Notifications
You must be signed in to change notification settings - Fork 82
[Source] Deprecate key-type
label and replace it with a spec field
#939
Comments
+1 with the condition that all Kafka primitive types are supported. Related to #897 |
also why not |
I'm ok with
No, I don't atm. |
I'm not entirely sure on supporting all those types, those are Kafka protocol types so I'm not sure how common they are as key of a message, in fact there is no serializer for |
what is keyType then, if not protocol types? |
Kafka protocol types are types used by the Kafka protocol for communications between Kafka Clients and Kafka Server.
|
Sorry you didn't quite answer the question. Records are encoded using the Kafka Protocol, which only encoded values, not the types. Consequently it's up to the application to indicate (directly or indirectly) what's the type of the encoded record (the key in this particular case) in order to decode it.
Bottom line, I would argue that the Does this make sense? |
Sorry, if I'm not quite following. IMHO, "Kafka protocol types" are the representations on the wire of Kafka communication between Client and Server.
Ack.
Ack
Ack, I was thinking the same and I updated the issue accordingly. |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
Problem
A label for a configuration is fine if you don't have control over the CRD or for an experimental feature.
Specifying a key type is a core feature of
KafkaSource
, so I propose to introduce a new spec field as an alternative to thekey-type
label:A spec field has many benefits over an annotation or label like validation since if I mistype the annotation key or label key I won't get any error or warning.
Persona:
Which persona is this feature for?
Exit Criteria
A measurable (binary) test that would indicate that the problem has been resolved.
Time Estimate (optional):
How many developer-days do you think this may take to resolve?
1
The text was updated successfully, but these errors were encountered: