Github user sunjincheng121 commented on the issue: https://github.com/apache/flink/pull/3534 Hi, @StephanEwen thanks for your attention to this JIRA. This issue only a code cleanup. In fact this is not a bug. When I work on [FLINK-5995](https://issues.apache.org/jira/browse/FLINK-5995), when using `DefaultOperatorStateBackend#getOperatorState` got an exception, Then I checked out the `AbstractKeyedStateBackend#getPartitionedState`, Then find the code duplicate check. Just like description of this JIRA. About `AbstractKeyedStateBackend#getOrCreateKeyedState` I'm not sure, but I suggest do the same thing with `getPartitionedState`. Because I had check `WindowOperator's windowStateDescriptor` also use `input.getType().createSerializer(getExecutionEnvironment().getConfig())` init the `typeSerializer`. What do you think?
--- 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. ---