Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AutoConsumeSchema: use decode(payload, schemaversion) (apache#10700)
In `AutoConsumeSchema.decode `we should proxy the call to "`decode(payload, schemaversion)`" correctly to the wrapped Schema. Even if the Schema is picked up from a map (`schemaMap`) that keeps track of the _schemaversion_, we must pass the correct `schemaversion` to the underlying Schema. Some Schema implementations may fall back to using the "latest schema" if you pass "null" as _schemaversion_ or call `decode(payload)` (without _schemaversion_), leading to non consistent behaviour
- Loading branch information