Closed josephglanville closed 5 years ago
Merging #451 into master will decrease coverage by
0.05%
. The diff coverage is91.96%
.
@@ Coverage Diff @@
## master #451 +/- ##
==========================================
- Coverage 92% 91.94% -0.06%
==========================================
Files 30 30
Lines 4201 4310 +109
==========================================
+ Hits 3865 3963 +98
- Misses 336 347 +11
@blt Still labelled a WIP, but can we have your eyes on this changeset too?
Hi folks! Happy to give this a review. Can I get a description added to the PR so I know what this is trying to accomplish?
@blt this is ready for initial review but is yet to undergo full end to end testing.
I type aliased util::HashMap<Vec<u8>, Vec<u8>>
to Metadata
which cleaned things up a bit. Though Default:: default ()
feels a little janky. Would be nice if Metadata::new()
worked without additional code. Might research that a bit if I get time.
@josephglanville you ought to be able to do Metadata::default()
, no?
@blt fixed a bug in the header handling and improved test coverage to meet the targets.
This introduces a new wire format version for the Avro source.
The existing version 1 Avro source doesn't provide any support for extensible metadata.
Introduced in version 2 is a set of key value pairs in the header that can be used to carry arbitrary metadata.
The protocol allows up to 255 key value pairs, each with a key of up to 255 UTF-8 encoded bytes and a value of up to 65535 bytes in length.
The new packet structure is described below in IETF RFC format:
The source remains backwards compatible with version 1 clients.