You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Tzu-Li (Gordon) Tai (JIRA)" <ji...@apache.org> on 2019/02/28 11:23:00 UTC
[jira] [Closed] (FLINK-11753) Add utils for serialization
compatibility tests
[ https://issues.apache.org/jira/browse/FLINK-11753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tzu-Li (Gordon) Tai closed FLINK-11753.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.8.0
Thanks for the contribution Igal.
Merged:
1.8.0: 6ac771a09c107444e0ddc205aeaaa8dafd7998c6
1.9.0: 1c36d22a7c51e080dcf6766c71677741a1c68194
> Add utils for serialization compatibility tests
> -----------------------------------------------
>
> Key: FLINK-11753
> URL: https://issues.apache.org/jira/browse/FLINK-11753
> Project: Flink
> Issue Type: Improvement
> Reporter: Igal Shilman
> Assignee: Igal Shilman
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.8.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> It would be helpful to have few hamcrest matchers, and stub-serializer/snapshot classes to ease
> unit testing serializer schema related logic.
> This is currently implemented in few different places already, in different ways.
> For example:
> * [https://github.com/apache/flink/blob/master/flink-formats/flink-avro/src/test/java/org/apache/flink/formats/avro/typeutils/AvroSerializerSnapshotTest.java#L192]
> * [https://github.com/apache/flink/blob/master/flink-core/src/test/java/org/apache/flink/api/common/typeutils/base/EnumSerializerSnapshotMigrationTest.java#L74]
> * [https://github.com/apache/flink/blob/1850193b956b899aefd3ea84fe726e10b9359b55/flink-core/src/test/java/org/apache/flink/api/common/typeutils/TypeSerializerSnapshotMigrationTestBase.java#L533]
> A stub serializer, is a serializer that returns a stub snapshot, which can be configured during test setup how to behave when restoreSerializer/resolveSchemaCompatibility are called.
> This would be very useful for tests that test composite serializers.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)