-
Notifications
You must be signed in to change notification settings - Fork 108
[admin-tool] update VeniceKafkaDecodedRecord with PubSubPosition field #2286
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -14,9 +14,9 @@ | |||||
| "doc": "Raw bytes of the value" | ||||||
| }, | ||||||
| { | ||||||
| "name": "offset", | ||||||
| "type": "long", | ||||||
| "doc": "The offset of this record in Kafka" | ||||||
| "name": "position", | ||||||
| "type": "string", | ||||||
| "doc": "The position of this record in Kafka" | ||||||
|
||||||
| "doc": "The position of this record in Kafka" | |
| "doc": "The position of this record in Kafka as a serialized PubSubPosition wire format string (base64-encoded)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking schema change that will cause backward compatibility issues. The field name change from 'offset' to 'position' and type change from 'long' to 'string' means existing consumers (like KafkaTopicDumper at line 459 in KafkaTopicDumper.java which references 'offset field') will break when reading new records. Consider: (1) adding an alias to the field definition using Avro's 'aliases' property to maintain backward compatibility, or (2) implementing a phased migration approach with both fields present temporarily, or (3) documenting this as a major breaking change requiring coordinated deployment.