[ https://issues.apache.org/jira/browse/FLINK-16596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flink Jira Bot updated FLINK-16596: ----------------------------------- Labels: auto-deprioritized-major stale-minor (was: auto-deprioritized-major) I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help the community manage its development. I see this issues has been marked as Minor but is unassigned and neither itself nor its Sub-Tasks have been updated for 180 days. I have gone ahead and marked it "stale-minor". If this ticket is still Minor, please either assign yourself or give an update. Afterwards, please remove the label or in 7 days the issue will be deprioritized. > Support Enum-Values as part of a Key > ------------------------------------ > > Key: FLINK-16596 > URL: https://issues.apache.org/jira/browse/FLINK-16596 > Project: Flink > Issue Type: Improvement > Components: API / DataStream > Reporter: Felix Wollschläger > Priority: Minor > Labels: auto-deprioritized-major, stale-minor > > See: FLINK-11774 > h2. Description: > The hashCode implementation of Enum-Values is guaranteed to be stable inside > a JVM, but not accross multiple JVMs. This leads to failures when restoring > from a checkpoint/savepoint containing Keyed-State on Keys with Enums as a > part of the key. > For users of Flink there is a workaround to solve this problem: > Don't rely on the hashCode-Implementation of Enum-Values in the > hashCode-Implementation of the actual key. Use the ordinal() or > name().hashCode() instead of the Enum hashCode. > h2. Goals of this improvement: > Implement a way to handle Enum-Values, by either handling Enum-Values on a > internal level or implementing a abstract Base KeySelector class that users > of flink can choose if their key contains a Enum-Value. > Code to reproduce a failure and first thoughts can be found in FLINK-11774 . -- This message was sent by Atlassian Jira (v8.20.1#820001)