Github user StefanRRichter commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3925#discussion_r116977261
  
    --- Diff: 
flink-contrib/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBKeyedStateBackend.java
 ---
    @@ -1228,6 +1243,19 @@ private 
RocksDBIncrementalRestoreOperation(RocksDBKeyedStateBackend<?> stateBack
                                DataInputView in = new 
DataInputViewStreamWrapper(inputStream);
                                serializationProxy.read(in);
     
    +                           // check for key serializer compatibility; this 
also reconfigures the
    +                           // key serializer to be compatible, if it is 
required and is possible
    +                           if 
(StateMigrationUtil.resolveCompatibilityResult(
    +                                           
serializationProxy.getKeySerializer(),
    +                                           
TypeSerializerSerializationProxy.ClassNotFoundDummyTypeSerializer.class,
    +                                           
serializationProxy.getKeySerializerConfigSnapshot(),
    +                                           (TypeSerializer) 
stateBackend.keySerializer)
    +                                   .isRequiresMigration()) {
    +
    +                                   throw new RuntimeException("The new key 
serializer is not compatible to read previous keys. " +
    +                                           "Aborting now since state 
migration is currently not available");
    --- End diff --
    
    Same here.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to