[ 
https://issues.apache.org/jira/browse/FLINK-4759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15554849#comment-15554849
 ] 

Stephan Ewen commented on FLINK-4759:
-------------------------------------

I think that should not be changed. The `DataOutputViewStream` holds no 
resources, no need to close.
The underlying stream should not be closed in that method, because it is just 
passed into that method, there is no guarantee that no one else will want to 
use it.

> Unclosed DataOutputViewStream in JavaSerializer
> -----------------------------------------------
>
>                 Key: FLINK-4759
>                 URL: https://issues.apache.org/jira/browse/FLINK-4759
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>   public void serialize(T record, DataOutputView target) throws IOException {
>     InstantiationUtil.serializeObject(new DataOutputViewStream(target), 
> record);
>   }
> {code}
> The DataOutputViewStream should be closed upon return from the method.



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

Reply via email to