You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "David C Navas (JIRA)" <ji...@apache.org> on 2019/05/15 18:49:00 UTC

[jira] [Created] (SPARK-27731) Cleanup some odd-looking typing choices and exception handling

David C Navas created SPARK-27731:
-------------------------------------

             Summary: Cleanup some odd-looking typing choices and exception handling
                 Key: SPARK-27731
                 URL: https://issues.apache.org/jira/browse/SPARK-27731
             Project: Spark
          Issue Type: Sub-task
          Components: Spark Core
    Affects Versions: 2.3.3
            Reporter: David C Navas


Previous checkins cleaned up some of the odd exception propagation choices (Throwables.propagate is deprecated), there's a little more work on that here.  Additionally, the InMemory's InstanceList wasn't previously generically typed, which made some of the code excessively cautious.  I added the generic typing and removed the sprinkling of Precondition checks which seems to have been designed to work around not having proper compile-time type checking.  Also, it turned out to be unnecessary to track the class in the KVStoreView, which allows for the easy creation of an EMPTY_VIEW singleton.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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