You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 05:35:18 UTC
[jira] [Updated] (SPARK-2296) Refactor util.JsonProtocol for
evolvability
[ https://issues.apache.org/jira/browse/SPARK-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon updated SPARK-2296:
--------------------------------
Labels: bulk-closed (was: )
> Refactor util.JsonProtocol for evolvability
> -------------------------------------------
>
> Key: SPARK-2296
> URL: https://issues.apache.org/jira/browse/SPARK-2296
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 1.0.0
> Reporter: Andrew Or
> Priority: Major
> Labels: bulk-closed
>
> The current design is not very evolvable. For backwards compatibility, every time we add a new field in one of the relevant objects (e.g. StageInfo) we need to add a default value to the field. Otherwise, the test suite still passes, but it throws some sort of obscure json exception if the field does not exist.
> We should let a common interface (JsonSerializable) handle this logic, so we don't need to do it for all classes.
--
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