Skip to content

Commit

Permalink
AutoConsumeSchema: use decode(payload, schemaversion) (apache#10700)
Browse files Browse the repository at this point in the history
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

(cherry picked from commit c2e5ec6)
  • Loading branch information
eolivelli committed Jun 7, 2021
1 parent 3398e3f commit e21c038
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit e21c038

Please sign in to comment.