You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/01/29 20:38:39 UTC

[jira] [Commented] (SPARK-13084) Utilize @SerialVersionUID to avoid local class incompatibility

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

Sean Owen commented on SPARK-13084:
-----------------------------------

Serialversionuid is generally a bad idea. It opens up a worse problem: you claim compatibility when something isn't because you forget to update the field. I don't think it's expected that a serialized RDD is compatible across any different versions. I would be against this in general

> Utilize @SerialVersionUID to avoid local class incompatibility
> --------------------------------------------------------------
>
>                 Key: SPARK-13084
>                 URL: https://issues.apache.org/jira/browse/SPARK-13084
>             Project: Spark
>          Issue Type: Bug
>            Reporter: Ted Yu
>
> Here is related thread:
> http://search-hadoop.com/m/q3RTtSjjdT1BJ4Jr/local+class+incompatible&subj=local+class+incompatible+stream+classdesc+serialVersionUID
> RDD extends Serializable but doesn't have @SerialVersionUID() annotation.
> Adding @SerialVersionUID would overcome local class incompatibility across minor releases.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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