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-21081) Throw specific IllegalStateException subtype when asserting that SparkContext not stopped
Date Tue, 13 Jun 2017 16:54:00 GMT

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

Sean Owen commented on SPARK-21081:
-----------------------------------

Where would you want to catch and handle that separately?

> Throw specific IllegalStateException subtype when asserting that SparkContext not stopped
> -----------------------------------------------------------------------------------------
>
>                 Key: SPARK-21081
>                 URL: https://issues.apache.org/jira/browse/SPARK-21081
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.1.1
>            Reporter: Filipp Zhinkin
>            Priority: Minor
>
> org.apache.spark.SparkContext.assertNotStopped throws IllegalStateException if the context
was stopped.
> Unfortunately, it is not so easy to distinguish IAE caused by a stopped context from
some other  failed assertion and handle it properly (start a new context, for example).
> I'm suggesting to add a specific IllegalStateException subclass (SparkContextClosedException)
and start throwing it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message