You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "mingleizhang (JIRA)" <ji...@apache.org> on 2017/04/16 11:21:41 UTC

[jira] [Commented] (FLINK-6104) Resource leak in ListViaRangeSpeedMiniBenchmark

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

mingleizhang commented on FLINK-6104:
-------------------------------------

I will give a pr to this jira soon.

> Resource leak in ListViaRangeSpeedMiniBenchmark
> -----------------------------------------------
>
>                 Key: FLINK-6104
>                 URL: https://issues.apache.org/jira/browse/FLINK-6104
>             Project: Flink
>          Issue Type: Bug
>          Components: State Backends, Checkpointing
>            Reporter: Ted Yu
>            Assignee: mingleizhang
>            Priority: Minor
>
> {code}
>     final WriteOptions write_options = new WriteOptions()
>         .setSync(false)
>         .setDisableWAL(true);
> {code}
> WriteOptions ultimately extends AbstractNativeReference where:
> {code}
> public abstract class AbstractNativeReference implements AutoCloseable {
> {code}
> WriteOptions instance should be closed.
> {code}
>     final RocksDB rocksDB = RocksDB.open(options, rocksDir.getAbsolutePath());
> {code}
> RocksDB should be closed as well.



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