You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source topic could have messages posted with "out of order" schemas, with respect to the order generated in the source registry.
When "schema 2" gets copied before "schema 1", then the destination fails with a backwards incompatible exception.
This needs tested, but the only workaround I can think of would be to do an initial schema sync ahead of starting the SMT, or set the destination compatibility to none/full
EDIT
Doesn't look like the mock registry client does any compatibility checking.
Will need to add that first
The text was updated successfully, but these errors were encountered:
I guess one option would be to create on arrival of v1 a mediated compatible schema that re-adds all dropped fields that were introduced with v2 (assuming backward compat.).
Since this should only happen across partitions (within a partititon, schema ids should be increasing), one could think of leaving partitions unassigned as long as their most current record references a too recent schema version.
Since this should only happen across partitions (within a partititon, schema ids should be increasing)
This is not necessarily the case. I've ran into instances where teams will post their schemas to the registry ahead of time, then one team will update their producer schemas, meanwhile another team has not upgraded yet. Then you get data in the topic that would look like the following for schema ids [1, 1, 1, 2, 2, 1, 2, 1, 2]. If the those first [1, 1, 1] ids expired and the connector is started, then this transform would send ID 2 (as ID 1 in the destination), then try to send ID 1 (as ID 2 in the destination), regardless of the partition.
I don't think it makes sense to put in a config sync on a per-message basis. Plus, there isn't a way to lookup the source subject name to do a GET /config/:subject call which is why I was thinking of a separate script to be used ahead of starting the connector.
The source topic could have messages posted with "out of order" schemas, with respect to the order generated in the source registry.
When "schema 2" gets copied before "schema 1", then the destination fails with a backwards incompatible exception.
This needs tested, but the only workaround I can think of would be to do an initial schema sync ahead of starting the SMT, or set the destination compatibility to none/full
EDIT
Doesn't look like the mock registry client does any compatibility checking.
Will need to add that first
The text was updated successfully, but these errors were encountered: