tzulitai opened a new pull request #7239: [FLINK-11073] [core] Allow immutable 
serializers
URL: https://github.com/apache/flink/pull/7239
 
 
   ## What is the purpose of the change
   
   See JIRA [FLINK-11073](https://issues.apache.org/jira/browse/FLINK-11073) 
for a detailed description of the motivation for this PR.
   
   ## Brief change log
   
   - Introduce 
`TypeSerializerSchemaCompatibility.compatibleWithReconfiguredSerializer(TypeSerializer)`
 as a new option for compatibility result checks.
   - Introduce `CompositeTypeSerializerSnapshot` class. This encapsulates logic 
for handling
   writing, reading, and deriving final compatibility results for composite
   serializers that have multiple nested serializers. It also respects the new 
`TypeSerializerSchemaCompatibility.compatibleWithReconfiguredSerializer(TypeSerializer)`
 case.
   - Let all serializer snapshots that were using the old 
`CompositeSerializerSnapshot` class to extend 
    the new `CompositeTypeSerializerSnapshot`.
   - Rename `CompositeSerializerSnapshot` to 
`NestedSerializersSnapshotDelegate` to better convey its purpose after the 
rework. The class is also now annotated as final, as users should be using the 
`CompositeTypeSerializerSnapshot` class instead.
   
   ## Verifying this change
   
   All corresponding `XXSerializerSnapshotMigrationTest` of the touched 
serializer snapshots should all still be passing.
   
   ## Does this pull request potentially affect one of the following parts:
   
   This **does** affect one `PublicEvolving` API, the 
`CompositeSerializerSnapshot`.
   It has been renamed and now made `Internal`.
   
     - Dependencies (does it add or upgrade a dependency): (yes / **no**)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (**yes** / no)
     - The serializers: (**yes** / no / don't know)
     - The runtime per-record code paths (performance sensitive): (yes / **no** 
/ don't know)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: (**yes** / no / don't know)
     - The S3 file system connector: (yes / **no** / don't know)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to