flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLINK-3734) Unclosed DataInputView in AbstractAlignedProcessingTimeWindowOperator#restoreState()
Date Fri, 19 Aug 2016 17:17:20 GMT

     [ https://issues.apache.org/jira/browse/FLINK-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated FLINK-3734:
--------------------------
    Description: 
{code}
    DataInputView in = inputState.getState(getUserCodeClassloader());

    final long nextEvaluationTime = in.readLong();
    final long nextSlideTime = in.readLong();

    AbstractKeyedTimePanes<IN, KEY, STATE, OUT> panes = createPanes(keySelector, function);
    panes.readFromInput(in, keySerializer, stateTypeSerializer);

    restoredState = new RestoredState<>(panes, nextEvaluationTime, nextSlideTime);
  }
{code}
DataInputView in is not closed upon return.

  was:
{code}
    DataInputView in = inputState.getState(getUserCodeClassloader());

    final long nextEvaluationTime = in.readLong();
    final long nextSlideTime = in.readLong();

    AbstractKeyedTimePanes<IN, KEY, STATE, OUT> panes = createPanes(keySelector, function);
    panes.readFromInput(in, keySerializer, stateTypeSerializer);

    restoredState = new RestoredState<>(panes, nextEvaluationTime, nextSlideTime);
  }
{code}

DataInputView in is not closed upon return.


> Unclosed DataInputView in AbstractAlignedProcessingTimeWindowOperator#restoreState()
> ------------------------------------------------------------------------------------
>
>                 Key: FLINK-3734
>                 URL: https://issues.apache.org/jira/browse/FLINK-3734
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>     DataInputView in = inputState.getState(getUserCodeClassloader());
>     final long nextEvaluationTime = in.readLong();
>     final long nextSlideTime = in.readLong();
>     AbstractKeyedTimePanes<IN, KEY, STATE, OUT> panes = createPanes(keySelector,
function);
>     panes.readFromInput(in, keySerializer, stateTypeSerializer);
>     restoredState = new RestoredState<>(panes, nextEvaluationTime, nextSlideTime);
>   }
> {code}
> DataInputView in is not closed upon return.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message