You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Szilard Nemeth (Jira)" <ji...@apache.org> on 2022/03/01 17:11:00 UTC

[jira] [Updated] (YARN-11075) Explicitly declare serialVersionUID in LogMutation class

     [ https://issues.apache.org/jira/browse/YARN-11075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Szilard Nemeth updated YARN-11075:
----------------------------------
    Fix Version/s: 3.2.4
                   3.1.5
                   3.3.3

> Explicitly declare serialVersionUID in LogMutation class
> --------------------------------------------------------
>
>                 Key: YARN-11075
>                 URL: https://issues.apache.org/jira/browse/YARN-11075
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 3.3.1
>            Reporter: Benjamin Teke
>            Assignee: Benjamin Teke
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.0, 3.2.4, 3.1.5, 3.3.3
>
>          Time Spent: 4h
>  Remaining Estimate: 0h
>
> The [LogMutation|https://github.com/apache/hadoop/blob/f91e21ac109e753e76d19c5c872c59a767b7b837/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/conf/YarnConfigurationStore.java#L55] class doesn't have its serialVersionUID defined as a private final static constant hence the compiler generates one for it. Upon every [logMutation|https://github.com/apache/hadoop/blob/d336227e5c63a70db06ac26697994c96ed89d230/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/conf/ZKConfigurationStore.java#L163] call, the existing logMutation objects are collected from the chosen config store and deserialized, but if a new/different RM jar loads these and the serialVersionUIDs don't match (for example a different compiler generated a different ID) an InvalidClassException occurs.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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