flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till Rohrmann (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-6765) PojoSerializer returns wrong ConvertDeserializer when migration is required
Date Mon, 29 May 2017 15:25:04 GMT
Till Rohrmann created FLINK-6765:
------------------------------------

             Summary: PojoSerializer returns wrong ConvertDeserializer when migration is required
                 Key: FLINK-6765
                 URL: https://issues.apache.org/jira/browse/FLINK-6765
             Project: Flink
          Issue Type: Bug
          Components: Type Serialization System
    Affects Versions: 1.3.0, 1.4.0
            Reporter: Till Rohrmann


The {{PojoSerializer}} returns the wrong the ConvertDeserializer when migration is required.
The reason is the following line in PojoSerializer.java:698:

{code}
if (compatResult.getConvertDeserializer() != null) {
	rebuiltCache.put(previousCachedEntry.getKey(), cachedSerializer);
} else {
	return CompatibilityResult.requiresMigration();
}
{code}

which should be imo

{code}
if (compatResult.getConvertDeserializer() != null) {
	rebuiltCache.put(previousCachedEntry.getKey(), compatResult.getConvertDeserializer());
} else {
	return CompatibilityResult.requiresMigration();
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message