Skip to content

KIP-482 WIP#7234

Closed
cmccabe wants to merge 77 commits intoapache:trunkfrom
cmccabe:KIP-482-II
Closed

KIP-482 WIP#7234
cmccabe wants to merge 77 commits intoapache:trunkfrom
cmccabe:KIP-482-II

Conversation

@cmccabe
Copy link
Copy Markdown
Contributor

@cmccabe cmccabe commented Aug 21, 2019

No description provided.

cmccabe added 24 commits August 2, 2019 15:18
add support for reading and writing varlongs.  Remove support for the
functions that always checked null before serializing or deserializing
because we're going to be more careful now (and complain about invalid
nulls).
* Move default fields validation to write().

* Update MessageTest and get it passing.
Retcon the ControlledShutdownRequest v0 header as header 0, and
the current version as v1.  Create version 2 for headers that have
tagged fields and compact strings.
IsNullConditional should not generate a version check.  It creates too
many conditionals.  Now, we either use the maybeNull generator callback,
or the definitely not null generator callback.  On the same note, use
Runnable instead of ClauseGenerator, since there is no need to pass in
versions.

VersionConditional: fix a bug where we would sometimes erroneosly
generate a version check even when the two ranges didn't intersect.

Lift the flexible versions check out of the loop when serializing arrays
(unless the element type of the array would be serialized the same
either way.)

Fix the serialization of tagged field headers in Message#write.
* Add RawTaggedField#size

* Fix the write and size functions for rawTaggedFields

* In MessageTest, add testwriteNullForNonNullableFieldRaisesException and testUnknownTaggedFields
Add flexibleVersion to all message specs.

Get rid of request header / response header v2 for now, until we can
figure out what to do about ApiVersionsRequest / KIP-511 here.
These classes should not have hard-coded switch statements for different
versions, but they do... fix that so our version bumps will work.

ListGroupsRequest.json: fix a typo
@cmccabe
Copy link
Copy Markdown
Contributor Author

cmccabe commented Sep 11, 2019

See #7325 instead

@cmccabe cmccabe closed this Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant