Sihua Zhou created FLINK-9174:

             Summary: The type of state created in 
ProccessWindowFunction.proccess() is inconsistency
                 Key: FLINK-9174
             Project: Flink
          Issue Type: Bug
          Components: State Backends, Checkpointing
    Affects Versions: 1.5.0
            Reporter: Sihua Zhou
            Assignee: Sihua Zhou
             Fix For: 1.5.0

The type of state created from windowState and globalState in 
{{ProcessWindowFunction.process()}} is inconsistency. For detail,
context.windowState().getListState(); // return type is HeapListState or 
context.globalState().getListState(); // return type is UserFacingListState

This cause the problem in the following code,
Iterable<T> iterableState = listState.get();
 if (terableState.iterator().hasNext()) {
   for (T value : iterableState) {
If the {{listState}} is created from {{context.globalState()}} is fine, but 
when it created from {{context.windowState()}} this will cause NPE. I met this 
in 1.3.2 but I found it also affect 1.5.0.

This message was sent by Atlassian JIRA

Reply via email to