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
107923: changefeedccl: Correctly handle dropped UDTs r=miretskiy a=miretskiy
Schema feed is responsible for the determination
of correct schema descriptor corresponding to an
event occuring at certain time.
Due to the need to use low level API to retrieve
historical descriptor versions, it is possible that the schema feed would observe descriptors that were dropped/deleted/truncated.
A long outstanding bug in schema feed would
incorrectly check for low level value being 'nil' in order to determine if the descriptor was dropped.
This check is incorrect since the iterator may return a non-nil empty byte array reprsenting a tombstone.
A non-nil, but empty KV value would lead schema feed to incorrectly attempt to deserialize protocol message, resulting in a `value type is not BYTES: UNKNOWN` being returned.
This PR fixes the above issue, and adds a test
to verify correct behavior.
Fixeshttps://github.com/cockroachlabs/support/issues/2408
Release note (enterprise change): Fix a rare changefeed issue which is triggered when the parent database or types are dropped, and instead of exiting with a descriptive error message, the changefeed would observe an opaque error instead (`value type is not BYTES: UNKNOWN`)
Co-authored-by: Yevgeniy Miretskiy <[email protected]>
0 commit comments