spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-20284) Make SerializationStream and DeserializationStream extend Closeable
Date Tue, 11 Apr 2017 12:02:41 GMT

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

Sean Owen commented on SPARK-20284:
-----------------------------------

It's a developer API, so dont' think callers will generally be using this. try-with-resources
isn't a JVM feature, it's a Java language feature. For example this doesn't do anything for
Scala AFAIK.

> Make SerializationStream and DeserializationStream extend Closeable
> -------------------------------------------------------------------
>
>                 Key: SPARK-20284
>                 URL: https://issues.apache.org/jira/browse/SPARK-20284
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 1.6.3, 2.1.0
>            Reporter: Sergei Lebedev
>            Priority: Trivial
>
> Both {{SerializationStream}} and {{DeserializationStream}} implement {{close}} but do
not extend {{Closeable}}. As a result, these streams cannot be used in try-with-resources.
> Was this intentional or rather nobody ever needed that?



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message