Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
214 changes: 212 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 12 additions & 11 deletions PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,18 @@ covered.
The schemas land in five pull requests: the primitive types and C11's typed error; key/value; generic records, with
each message decoded by the schema of its version; JSON and Avro; Protobuf.

Schemas so far: bytes, string, the primitive types, key/value and generic records, named and encoded as Java's, with a
public `SchemaInfo` and `SchemaType`. The simulated cluster keeps a schema history per topic, as the broker does, and
serves a schema by version. C11 holds there and against a 5.0.1 broker: a schema of another type than the topic's
fails with `IncompatibleSchema` for a Shared producer's sends, an exclusive producer's create, and each kind of
consumer's subscribe; the first consumer of a new topic registers its schema; and a topic with messages but no schema
refuses a schema. Java reads the values of each primitive type and key/value pairs that Rust sends, and Rust those
Java sends, typed and as generic records. A generic consumer fetches the schema of each version it meets, and decodes
each message with its own: against 5.0.1, with the primitive types and key/value, that is a message of a schema and
one without; schema evolution, with JSON and Avro, comes with their pull request. Key/value is Java's inline encoding;
its separated one, with the key in the message's key, comes later. Java V5's `autoProduceBytes()` and
`generic(SchemaInfo)`, which the spec's standard set doesn't name, aren't planned yet.
Schemas so far: bytes, string, the primitive types, key/value, generic records, JSON and Avro, named and encoded as
Java's, with a public `SchemaInfo` and `SchemaType`; JSON and Avro are features, on by default, through `serde` and
apache-avro. The simulated cluster keeps a schema history per topic, as the broker does, and serves a schema by
version. C11 holds there and against a 5.0.1 broker: a schema of another type than the topic's fails with
`IncompatibleSchema` for a Shared producer's sends, an exclusive producer's create, and each kind of consumer's
subscribe; the first consumer of a new topic registers its schema; and a topic with messages but no schema refuses a
schema. Java reads the values of each schema that Rust sends, and Rust those Java sends, typed and as generic records.
Generic and Avro consumers fetch the schema of each version they meet, and decode each message with its own: against
5.0.1, Java's V5 evolution test holds across the two clients, a second Avro version registering after a split and
both clients reading the first version's records with it. Key/value is Java's inline encoding; its separated one,
with the key in the message's key, comes later. Java V5's `autoProduceBytes()` and `generic(SchemaInfo)`, which the
spec's standard set doesn't name, aren't planned yet.

The migration bridge's end-to-end tests run against 5.0.1, on partitioned and non-partitioned topics, with Java v4
clients running alongside (`tests/integration/bridge.rs`):
Expand Down
Loading
Loading