flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Wysakowicz (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLINK-6080) Unclosed ObjectOutputStream in NFA#serialize()
Date Wed, 22 Mar 2017 12:54:41 GMT

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

Dawid Wysakowicz resolved FLINK-6080.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.0

> Unclosed ObjectOutputStream in NFA#serialize()
> ----------------------------------------------
>
>                 Key: FLINK-6080
>                 URL: https://issues.apache.org/jira/browse/FLINK-6080
>             Project: Flink
>          Issue Type: Bug
>          Components: CEP
>            Reporter: Ted Yu
>            Assignee: Dawid Wysakowicz
>            Priority: Minor
>             Fix For: 1.3.0
>
>
> {code}
>     public void serialize(NFA<T> record, DataOutputView target) throws IOException
{
>       ObjectOutputStream oos = new ObjectOutputStream(new DataOutputViewStream(target));
>       oos.writeObject(record);
>       oos.flush();
>     }
> {code}
> ObjectOutputStream should be closed before returning from method.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message